@Anne-Marie: thank you!
@Stix: Placing page “3” is also possible. See the following code:
//The PDF to place will be placed cropped to it's TrimBox value;
//true until a different setting in UI is set or true until another script forces a different behaviour:
app.pdfPlacePreferences.pdfCrop = PDFCrop.CROP_TRIM;
//The background of the placed PDF will be set to “transparent”, set to “false” if you want the opposite.
//true until a different setting in UI is set or true until another script forces a different behaviour:
app.pdfPlacePreferences.transparentBackground = true;
//The following is working only once in one placing operation and might be true for all PDFs loaded in the “place gun”:
app.pdfPlacePreferences.pageNumber = 3;
//After emptying the “place gun” and without starting this script again, in the next place operation pageNumber will default to “1”
Attention:
if there is no page 3 in your PDF, the page that will be placed is the first page of your PDF. (To my surprise) the script will give no warning or error message.
Further: if you load several PDFs in your “place gun” and one of them does not contain a page 3, it depends on the loading order if any of the PDFs will be placed with page 3. Say, PDF 1 of 5 contains only 2 pages, then PDF 1 will trigger the default for itself and all consecutive loaded PDFs. Result: all PDFs are placed with their page 1.
Uwe