cancel
Showing results for 
Search instead for 
Did you mean: 

Embed and display PDF file contents in SAP Adobe Form

Former Member
0 Kudos

Hi friends,

How to embed PDF file contents in SAP Adobe Interactive Form? I have a PDF file stored in SAP DMS. I need to display pdf file contents (stored in DMS) at the end of SAP Adobe form. ( The pdf is not be attached in SAP Adobe Form but rather its contents should be loaded and displayed in SAP Adobe Form).

I have gone through SCN but I haven't found any concrete answer yet. Please help me out friends.

kind regrads,

CRM Dev

Accepted Solutions (0)

Answers (3)

Answers (3)

Sandra_Rossi
Active Contributor

Did you read the SAP note 2264208 (Merging PDF files (ABAP interface)) at https://service.sap.com/sap/support/notes/2264208?

It introduces the class CL_RSPO_PDF_MERGE. Could you try it?

Excerpt of the note, about limitations:

  • The PDF merger was developed for PDF files created by ADS or the SAP PDF converter. No guarantee can be given for PDF files from other sources. The following restrictions apply:
  • Interactive PDF files are not supported. They might be merged, but the interactive content will definitely be lost.
  • Files that contain encrypted content are not merged. It is often difficult to tell whether a file contains encrypted content from outside. If the file is opened with a text editor, you will find the keyword 'Encrypt' somewhere in it.
  • The files to be merged must correspond to the PDF specifications. Sometimes, the internal table of contents or internal object reference of a PDF file is damaged. This then no longer corresponds to the specifications. Such damaged files are not merged, even if some PDF viewers - such as Adobe Reader - can display the individual files.
Former Member
0 Kudos

Hello Sandra,

Thanks for your reply.

I am analyzing the note 2264208 as suggested by you.

I will respond to you very soon on this.

Thanks once again for your prompt reply.

Regards,

CRM Dev

Former Member
0 Kudos

Hello Sandra,

I have analysed the note 2264208 as suggested by you.

However, the note is not implemented into the system and also it can not be implemented into the system as the note is not compatible with the current system version.

Can you please suggest any other workaround or alternative that I can use to

embed PDF file contents in SAP Adobe Interactive Form?

Thanks in Advance,

CRM Dev

Sandra_Rossi
Active Contributor
0 Kudos

There is also a solution with external software PDFTK, as explained here:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404e4dc1-a79c-2d10-a7b5-9a266dfed...

Excerpt:

The PDFTK-based merge process consists of the following steps:

  • The source PDF files are written to a temporary directory on the SAP application server (class ZCL_PDF_MERGE)
  • Run PDFTK to merge the PDF files and save the merged file
  • Read the merged PDF file and forward it to the ABAP program (class ZCL_PDF_MERGE)
Former Member
0 Kudos

Hello Sandra,

Thanks for your prompt reply.

I analysed your approach (PDFTK solution).

However, is there any other solution/ approach without using any external software.

Please help me out.

Thanks,

CRM Dev

Former Member
0 Kudos

Hello Sandra,

is there any other solution/ approach without using any external software to embed pdf contents in SAP Adobe Form.

Please help me out.

Thanks,

Aditya

Sandra_Rossi
Active Contributor
0 Kudos

I don't have other answer than my 2 previous ones.

ayodhya_ram
Explorer
0 Kudos

Is there any alternative class to merge the xstrings apart from cl_rspo_pdf_merge. Or any function module to merge the Xstrings. We have used in one of our sandbox systems. since we dont have this in dev we were stuck at this step to merge the xstrings and send to spool system for printing. This will be much helpful if answered.

Former Member
0 Kudos

Hello Friends,

Please help me out. I am not able to figure it out how to resolve this issue?