Skip to Content

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

Feb 13, 2017 at 10:57 AM


avatar image

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.

10 |10000 characters needed characters left characters exceeded

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

Jelena Perfiljeva

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.

* Please Login or Register to Answer, Follow or Comment.

3 Answers

Vinita Kasliwal Feb 13, 2017 at 08:06 PM


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 ?



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

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.

Jelena Perfiljeva
Feb 20, 2017 at 06:03 PM

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 -> finds many results.

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

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.


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
May 30, 2017 at 02:35 PM

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?

10 |10000 characters needed characters left characters exceeded