Error when opening PDF attachment

I am a newbie here. I hope somebody could help me with the
technical problem I am facing now. Here's the situation:

PO is configured in the system such that when saved, it will send
out the information via email with PDF attachment. This is done
via output type and with the use of a sapscript. In the program,
I am reading the OTF data returned of function module
CLOSE_FORM, then conversion of OTF to PDF is happening via
function module SX_OBJECT_CONVERT_OTF_PDF. And with the use of
function module SO_NEW_DOCUMENT_ATT_SEND_API1, the PDF
attachment is send in my external email inbox. Whenever I open
the PDF attachment, I get this error message: "Adobe Reader
could not open PO800000024 because it is either not a supported
file type or because the file has been corrupted (for example
it was sent as an email attachment and wasn't correctly
decoded)."

The system I am dealing with right now has been upgraded to 4.7
version and recently became a UNICODE-enabled system.

Has somebody encountered the same problem as mine? what could be
wrong? do I need to do some conversion in my program before
sending it? Please help me. Thank you very much.

I have a similar issue for sending invoices as PDF attachment in external email on saving the document from VF02. But on manual send, that is by selecting the menu item 'Issue Ouput' from VF03/VF02, the PDF attachment in the email is perfectly readable.

This issue has been observed after applying support packs.
The SAP version is ECC 5.0 Unicode enabled. The current patch level for SAP_BASIS is 19 and for SAP_APPL is 16.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.