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: 

Adding a blank page to the end of a PDF in SAP ABAP

Former Member
0 Kudos

Good Day,

I am trying to create a program in ABAP that will process many PDF files and add a blank page to each of them.

And then merger the PDFs into batches of 500.

Has anyone done this?

Please advise.

Thank you.

8 REPLIES 8

Jelena
Active Contributor
0 Kudos

Why do you need this? I'd imagine a blank page would be quite annoying for someone viewing or printing such document...

vinita_kasliwal
Active Contributor
0 Kudos

Hi

You can add a subform and then print it as blank ?

Or if its condition based then add condition to it ..

Were you not able to do so? Do you get any error ?

Regards

Vinita

0 Kudos

I am uploading a 3 page PDF into SAP and processing the metadata. I need to make it a 4 page PDF and merge 500 into 1 for printing reasons.

Former Member
0 Kudos

I need to merge 500 PDFs into 1 for bulk printing, and they are 3 page PDFs.

So they are printed back to back. To make sure each document is not printed on the next, i need to add a blank page for there are even number of pages per document.

Jelena
Active Contributor
0 Kudos

Is there any reason you can't do this in the PDF itself? Also why not check if there are any special options for duplex printing? Google -> PDF add blank page for duplex site:sap.com -> finds many results.

Former Member
0 Kudos

I am uploading PDFs from an shared folder into my program, then i need to add a blank page at the end of each PDF and save it back into the folder.

Jelena
Active Contributor
0 Kudos

Sorry but using SAP ERP as a PDF manipulation tool does not seem to be reasonable or efficient. As Raymond also suggested, you might want to search for other tools.

raymond_giuseppi
Active Contributor
0 Kudos

I'm not sure, Abap is the tool to use (ever if we like it) Nevertheless you could play so:

  • First upload the pdf files in some internal tables, for every pdf except the first one, remove the leading "%PDF..." tag, and for every pdf except the last one, remove the trailing "%%EOF" tag.
  • To add a blank page, I would suggest you create such a sample blank pdf with any available tool, you can then use like the previous uploaded files, appending it after every file, or just rename it in .txt and analyze its content then put it in your code...
  • Last merge the internal tables and download the result to a new pdf file.
  • Test and test again to adjust

Better perform some search (google) for tools that do the job. Also for such information did you also post in some Adobe forums?