Insert Blank Pages in an Even Document

New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

Good day. I have several documents that i process on a daily basis. I have some documents that have 6 pages and others have 7. I need to ensure all documents have 7 pages. Basically i need to ensure all even docs are made odd

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Then you can use this code to do it:

if (this.numPages==6) this.newPage();

You can run it using an Action on all of your files to make sure they all have 7 pages.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

87

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

Insert Blank Pages in an Even Document

New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

Good day. I have several documents that i process on a daily basis. I have some documents that have 6 pages and others have 7. I need to ensure all documents have 7 pages. Basically i need to ensure all even docs are made odd

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Then you can use this code to do it:

if (this.numPages==6) this.newPage();

You can run it using an Action on all of your files to make sure they all have 7 pages.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

88

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
Jun 27, 2019 0
Most Valuable Participant ,
Jun 27, 2019

Copy link to clipboard

Copied

Do you care what are the dimensions of the extra page? Should it be the last page in the file?

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...
Jun 27, 2019 0
New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

No requirements for dimensions

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...
Jun 27, 2019 0
New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

it should be the last page

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...
Jun 27, 2019 0
Most Valuable Participant ,
Jun 27, 2019

Copy link to clipboard

Copied

Then you can use this code to do it:

if (this.numPages==6) this.newPage();

You can run it using an Action on all of your files to make sure they all have 7 pages.

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...
Jun 27, 2019 2
New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

Much thanks. It works.

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...
Jun 27, 2019 0