Placing INDD document in another INDD document
- This topic has 1 reply, 1 voice, and was last updated 7 years, 2 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Placing INDD document in another INDD document
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Placing INDD document in another INDD document
Tagged: place InDesign document
I am using the following script code to place a set of INDD documents in another INDD document. Each of the placed documents has 2 pages. In some cases, I wanted to place page 1, and in other cases it’s page 2. But I can’t get it to do anything but place page 1. I’ve used the same statements to place a selected page of a PDF file, but I can’t get it to work when placing an INDD document. Any ideas?
var formPage = myDoc.pages[0];
app.pdfPlacePreferences.pageNumber = myVersionPageNum;
var imageArray = formPage.place(myVersionFilePath, [myGeomLeft, myGeomTop], myDoc.layers.itemByName(myVersionsLayerName));
Thanks!
I was misled by a forum post I read somewhere (probably not here) that said placing InDesign documents uses the same preferences as placing PDF files. When I changed app.pdfPlacePreferences to app.importedPageAttributes, it works.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!