Skip to main content
Urban L
Known Participant
April 16, 2019
Question

Automating adding blank pages to a .pdf doc

  • April 16, 2019
  • 1 reply
  • 1884 views

I know how one can insert a blank page into a .pdf document.

I need to automate the process somehow.

I have a large document that is a set of 1- or 2-page documents.  I want to standardize the large document so it becomes a set of 2-page documents, so I need to insert a blank page in the 1-page documents.

I can recognize something on the page to identify the 1- and 2-page sub-documents.

Any suggestions?

Thanks.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 16, 2019

This is easily done with a script, and you can use it as a part of an Action (in Acrobat Pro) to process multiple files.

Do you want to add the blank page before or after the original one?

Urban L
Urban LAuthor
Known Participant
April 16, 2019

Thanks.  I will investigate this approach.

I will need to include some logic such as:

Loop through all the pages

If current page has certain characteristic

     insert a blank page before it

end if

end loop

I'll look for an example script of this format and type.

try67
Community Expert
Community Expert
April 16, 2019

That's much more complicated. The original request of adding a blank page if the file contains only one page is a single line of code, though.