Files
vectorcraft/docs
dotCooCoo 1b429b586e Scripts: Document.print prints to a file with PrintOptions and its option classes
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.
2026-11-21 18:31:30 -08:00
..
2026-11-20 05:45:14 +07:00
2026-11-19 15:12:20 +07:00
2026-11-20 06:07:45 +07:00