Also, ich habe u.a. dieses Script in meinen StartUp-Scripts…
#targetengine "session"
main();
function main()
{var myEventListener1 = app.addEventListener("afterPrint", setCopys, false);}
function setCopys(myEvent)
{myEvent.parent.printPreferences.copies = 1;
}
Dass liesse sich doch auch einfach umstricken zu "beforeImport" und die dementsprechende PDF-Option. Ich bin kein Java-Systax-Kenner, aber mit…
PDF attribute n : PDF attributes.
elements
contains events, event listeners.
properties
class (type, r/o) : The class descriptor type.
object reference (PDF attribute, r/o) : An object reference for the object.
page number (integer, r/o) : The page number of the PDF document page to place.
parent (specifier, r/o) : The parent of the PDF attribute (a PDF or imported page). Can return: PDF or imported page.
PDF crop (crop art/‌crop PDF/‌crop trim/‌crop bleed/‌crop media/‌crop content visible layers/‌crop content all layers, r/o) : The type of cropping to apply.
properties (record) : A property that allows setting of several properties at the same time.
transparent background (boolean, r/o) : If true, the background of the PDF is transparent.
……und dem oberen Scriptschnippsel könnte man doch flink ein StartUp-Script basteln? Vielleicht so:
function PDFimportDefault(myEvent)
{myEvent.parent.PDFattribute.PDFcrop = {crop bleed};
…aber wie gesagt, kann die JS-Referenzierung nicht :-(
als Antwort auf: [#560171]