Highlighted

Script to add blank pages before last to increase pages to multiples of 4 for booklet printing

New Here ,
Sep 29, 2020

Copy link to clipboard

Copied

I need an automate for a large numbers of pdfs,  I need to print booklets so the final pdfs must always be in page multiples of 4 but I need the last page of the original pdf to stay as the last page with blank pages inserted before the last page. (first page of pdf is front cover. last page of pdf is back cover)

EG:  3page pdf  becomes a 4 page   a 5 page pdf becomes an 8 page or a 31 page pdf  becomes a 32 page

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can't use Acrobat as a background process, and Acrobat 8 is very old and not supported by Adobe.

However, you can achieve it by running this code from an Action (or Batch Process, as it was formerly called):

 

while (this.numPages%4!=0) this.newPage(this.numPages-1, 595, 842);

TOPICS
Edit and convert PDFs, Print and prepress

Views

75

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Script to add blank pages before last to increase pages to multiples of 4 for booklet printing

New Here ,
Sep 29, 2020

Copy link to clipboard

Copied

I need an automate for a large numbers of pdfs,  I need to print booklets so the final pdfs must always be in page multiples of 4 but I need the last page of the original pdf to stay as the last page with blank pages inserted before the last page. (first page of pdf is front cover. last page of pdf is back cover)

EG:  3page pdf  becomes a 4 page   a 5 page pdf becomes an 8 page or a 31 page pdf  becomes a 32 page

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can't use Acrobat as a background process, and Acrobat 8 is very old and not supported by Adobe.

However, you can achieve it by running this code from an Action (or Batch Process, as it was formerly called):

 

while (this.numPages%4!=0) this.newPage(this.numPages-1, 595, 842);

TOPICS
Edit and convert PDFs, Print and prepress

Views

76

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 29, 2020 0
Most Valuable Participant ,
Sep 29, 2020

Copy link to clipboard

Copied

Does the size of the pages to insert matter? Which version of Acrobat do you have?

 

Edit: fixed a typo

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 29, 2020 0
New Here ,
Sep 30, 2020

Copy link to clipboard

Copied

I have the latest version of Acrobat Pro DC installed on our Design Mac in necessary but I would prefer to be running this in the background automated on a PC running Acrobat 8.

 

The documents are A4 portrait, however the pdfs would then be dropped into a hot folder on a RIP which would impose the pages for output.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 30, 2020 0
Most Valuable Participant ,
Sep 30, 2020

Copy link to clipboard

Copied

You can't use Acrobat as a background process, and Acrobat 8 is very old and not supported by Adobe.

However, you can achieve it by running this code from an Action (or Batch Process, as it was formerly called):

 

while (this.numPages%4!=0) this.newPage(this.numPages-1, 595, 842);

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 30, 2020 0
New Here ,
Oct 01, 2020

Copy link to clipboard

Copied

Fantastic, this works perfectly. 

Can you recommend any resources where I can learn more about this scripting/code  starting from being  a complete beginner?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0