Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to merge archived PDF files in One file?

Former Member
0 Kudos

Technical Folks,

I have archived the billing documents in PDF files with the below function modules.

CALL FUNCTION 'ARCHIV_GET_CONNECTIONS'

CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'


However, I got one PDF file for each document.

How can I get all the billing documents in one PDF file? or

How can we merge PDF files for different documents in one PDF file?

Thanks.

Regards,

Meer

1 ACCEPTED SOLUTION

MariaJoãoRocha
Contributor
0 Kudos

Hi,

I follow 

it works ok!

Regards,

Maria João Rocha

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos

Hi,

you need external tools like GhostScript

regards

Fred

Former Member
0 Kudos

PDF is a XSTRING in abap. It should be possible to just add another xstring to one and you've got your output.

0 Kudos

Hi Jozef,

PDF is not a flat file !  it contains Header, Footer, pages, ... You can't just concatenate PDF

It's like a video file or a mp3 file.

regards

Fred

0 Kudos

Hi, I'm sorry, I must have been blackout last day . I joined multiple conversations at once and now I see, that this one does not make too much sense, I apologize.

As you said before, to do this, Meer will need to use a third party software, ideally installed on the server.

MariaJoãoRocha
Contributor
0 Kudos

Hi,

I follow 

it works ok!

Regards,

Maria João Rocha

Former Member
0 Kudos

Believe me it's very simple. It becomes much more simpler if are using Adobe Acrobat tool. But make sure you are using full version, i.e. demo version of Adobe Acrobat will not help you in this. Adobe Acrobat tool supports a built-in feature to combine multiple PDF files into a single file.

You can read this blog: PDF Split and Merge is Now an Easy Task to Perform | N.Sem's Blog

Hope this blog would be helpful for those users who are looking for a way to combine and split their PDF files.

Thanks.

Private_Member_7726
Active Contributor

SAP has answered this requirement 2264208 - Merging PDF files (ABAP interface)

You'd need NW 731, 740 or 750 and appropriate kernel mentioned in SAP Note 2237181.

I could install the Note, but cant test because our system would require kernel upgrade.

cheers

Jānis