Skip to Content
0

Embedding a existing PDF into newly created form.

Dec 13, 2016 at 06:55 AM

124

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Ryan Crosby Dec 13, 2016 at 08:41 PM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

0
Carmine DAgostino Dec 13, 2016 at 08:22 AM
0

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.


Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

0

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

0
Jelena Perfiljeva
Dec 13, 2016 at 07:32 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded