Question

Staidlogic
IN
Last activity: 9 Jul 2025 19:47 EDT
PDF attachment file not opening – file gets corrupted after email sent via Pega activity
Hi All,
I am sending a PDF file as an attachment using a Service-REST activity in Pega 8.7. The PDF is uploaded in Pega as a Rule-File-Binary.
The email is successfully sent, and the PDF is attached. However, when I try to open the file (e.g., in WPS PDF viewer or Adobe Reader), I receive an error: “Cannot open this file. It is not a supported file type, or the file has been damaged.”
For your reference, attached the files
What could be causing the corruption of the PDF? Is there a different method to encode or attach the file properly?
Any help or example activity configuration is appreciated.