Copy link to clipboard
Copied
I've built an action (using action wizard) in Acrobat XI Pro that inserts a single-page PDF file into another with this code:
this.insertPages({cPath:"/C/Scanning Temp Storage/Blank Red Page.pdf"});
I would like to find a way to have that page inserted after a selected page. So, varies from document to document.
I used to have this action working the way I want it, but it got broken after I had to migrate my customized actions from one Windows user to another.
Thanks for any help!
Your code would become...
this.insertPages({nPage: this.pageNum, cPath:"/C/Scanning Temp Storage/Blank Red Page.pdf"});
... to insert after the current page. This generally means the page that you see selected in the Pages view. I'm not sure what a selected page would mean.
Copy link to clipboard
Copied
By "selected page", do you mean the current page that is being viewed? If not, what do you mean, exactly?
Copy link to clipboard
Copied
Yep - has a blue "halo" when viewed in the page thumbnails tab.
Copy link to clipboard
Copied
Your code would become...
this.insertPages({nPage: this.pageNum, cPath:"/C/Scanning Temp Storage/Blank Red Page.pdf"});
... to insert after the current page. This generally means the page that you see selected in the Pages view. I'm not sure what a selected page would mean.
Copy link to clipboard
Copied
This was exactly what I was looking for! Thanks
I knew about the nPage function, but I didn't know what the modifier for a current page would be.
Thanks again!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now