Skip to Content
0

Embed and display PDF file contents in SAP Adobe Form

Nov 04, 2016 at 09:32 AM

746

avatar image
Former Member

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

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

3 Answers

Sandra Rossi Nov 07, 2016 at 09:58 AM
1

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.
Show 6 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Former Member

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

0

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-9a266dfed9cb?QuickLink=index&overridelayout=true&48846663289763

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)
0
Former Member
Sandra Rossi

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

0
Former Member
Sandra Rossi

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

0

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

0
avatar image
Former Member Nov 15, 2016 at 02:04 PM
0

Hello Friends,

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 21, 2017 at 01:41 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded