Skip to Content
avatar image
-1
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

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

  • Former Member 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.

  • Get RSS Feed

3 Answers

  • Feb 13, 2017 at 08:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • 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 site:sap.com -> finds many results.

    Add comment
    10|10000 characters needed characters exceeded

  • 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?

    Add comment
    10|10000 characters needed characters exceeded