mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 04:25:52 -05:00
Document.print(options) writes the file jobOptions.file names, checked as saveAs checks its file: PostScript when the name ends with .ps or postScriptLevel is assigned, a print-ready PDF otherwise. Only the properties a script assigns are sent to file.print over the document's saved print settings, which stay as they are, and no undo step is added. Without a file it throws, since printing to a printer is not available to scripts yet. - new PrintOptions() and its nine option classes read as their help pages' defaults until assigned, and a PrintOptions holds its option objects by reference. Each value is checked when it is assigned. - Preset, profile and paper names must name an existing preset, an RGB or CMYK profile or a known paper; an empty name or one holding a path separator or control character throws. An artboardRange naming a missing artboard throws before anything is written. - Options and values that are not mapped throw an error that says they are not available yet. printerName and PPDName take only "". - app.printPresetsList lists the print presets, app.PPDFileList is empty, and the print enumerations are published. - Each warning file.print gives goes to the Script Console. - vc.run still cannot run file.print or print.*. - A hosted File given to or returned by a member stays a File. Help pages: https://ai-scripting.docsforadobe.dev/jsobjref/PrintOptions/ and the option class pages beside it.