cancel
Showing results for 
Search instead for 
Did you mean: 

Embedding a existing PDF into newly created form.

Former Member
0 Kudos

Hi Experts,

I have new requirement to attach existing PDF into newly created form. To elaborate let say use has uploaded a PDF file while creating sales order in attachment tab. Now when output type is triggered and our custom form is called it will display the required data and after all that we need to have a page with the attached PDF file. This will different in each sales order.

Please let me know if it is possible or not, if possible help me resolve this issue.

Thanks in advance.

HG

Accepted Solutions (0)

Answers (3)

Answers (3)

Ryan-Crosby
Active Contributor

Hi HG,

I have done something like this in a standalone Java program using the iText API but I seriously doubt there is anything in the ABAP flavor which would allow you to merge two PDF outputs into one.

Regards,

Ryan Crosby

raymond_giuseppi
Active Contributor
0 Kudos

Check this document: Combining Multiple Smartform Outputs Into One PDF File

In this one the OTF first characters are removed (//) for PDF I suppose you have to remove also the leading characters (%PDF-1) and trailing characters (%%EOF) maybe more information could be available on an Adobe help/forum?

Regards,
Raymond

Ryan-Crosby
Active Contributor
0 Kudos

Hi Raymond,

Looks like it is possible working directly with OTF data. Personally, I would never present this as an option as I would not be comfortable working with OTF directly and guaranteeing an outcome with 100% accuracy.

Regards,

Ryan Crosby

Jelena
Active Contributor

You can't embed a PDF GOS attachment into a Smartform , to my knowledge, but with a custom output program you can try adding GOS attachment to the output after the form. Try Google -> add PDF to Smartform site:sap.com and similar queries. This has been asked before.

carmine
Explorer
0 Kudos

Hi,

what will work, ...

1. convert your given PDF to an image with ghostscript. As Outtput you will have an image File somewhere.

extern command SM69

2. In your PDF create an extra page with full-page image that links to the image.

3. After creating the PDF delete the image on the server.

Jelena
Active Contributor
0 Kudos

I seriously doubt this would work in the context of the OP's question...

carmine
Explorer
0 Kudos

Sorry: Its about SAP Interactive Forms by Adobe ... not about Smartforms (see your post).

Jelena
Active Contributor
0 Kudos

Oops, my bad! Just now noticed the secondary tag in the OP's question. Shouldn't jump to conclusions. Sorry!

carmine
Explorer
0 Kudos

Check,

RSPO_TEST_MERGE_PDF_FILES