Inserting pages into a large Document

New Here ,
Feb 28, 2022 Feb 28, 2022

Copy link to clipboard

Copied

I have a 5000 page document that I need to insert a blank page every 5 pages. Are there any scripts available for this?

 

TOPICS
How to , Scripting

Views

80

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
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Feb 28, 2022 Feb 28, 2022
Have done similar variations of this before. Here you go.  var pgs = app.activeDocument.pages; var i = 4; while (true) { try { pgs.add(LocationOptions.AFTER, pgs[i], {appliedMaster:null}); i+=6; } catch(e) { break; //we're out of range } }

Likes

Translate

Translate
Adobe Community Professional ,
Feb 28, 2022 Feb 28, 2022

Copy link to clipboard

Copied

LATEST

Have done similar variations of this before. Here you go. 

 

var pgs = app.activeDocument.pages;
var i = 4;
while (true) {
    try {
        pgs.add(LocationOptions.AFTER, pgs[i], {appliedMaster:null});
        i+=6;
    } catch(e) {
        break; //we're out of range
    }
}

 

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
community guidelines