Image Missing In PDF Converted from SapScript
I was supposed to convert SapScript into PDF for sending as an attachment with mail.
When I am doing that the image (client's logo) in SapScript is not present in PDF file.
Strange scenario here is that when I am downloading that same file to my hard disk then it is absolutely fine.
I have used FM 'CONVERT_OTF_2_PDF' to get PDF table. Then I compressed the PDF table data using the follwoing code snippet:
LOOP AT lt_pdftab INTO wa_pdftab.
TRANSLATE wa_pdftab USING ' ~'.
CONCATENATE wa_buffer wa_pdftab INTO wa_buffer.
TRANSLATE wa_buffer USING '~ '.
wa_record = wa_buffer.
APPEND wa_record TO lt_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
I think in this above process only some thing is going wrong because when I am downloading PDF file using GUI_DOWNLOAD then I am passing directly internal table lt_pdftab & not lt_record. But on exporting lt_pdftab data as attachment with mail the PDF file is getting opened with error.
Any help regarding the same is highly appreciated.