Merge pull request #9060 from dotCooCoo/feat/scripts-api-d10-print-options

Scripts: Document.print prints to a file with PrintOptions and its option classes
This commit is contained in:
.CooCoo authored and GitHub committed 2026-12-05 06:52:50 -08:00
commit 7aefbb8cee
9 files changed
+63 -32

No files matched your search

+1 -1
View File
@@ -1033,7 +1033,7 @@ fn prepare(h: &Host, doc: Doc, mut job: Job) -> Answer {
/// each assigned name against the list it must come from, and puts the checked names into the
/// job: a print or flattener preset by its name (any case), an RGB or CMYK color profile by its
/// name (any case) and a paper by its id or label. An empty name, or one with a path separator or
/// a control character, throws, and so does `CUSTOMPROFILE` with no profile `name`.
/// a control character, throws, and so does `CUSTOMPROFILE` with no profile `name` and no profile in the base settings.
fn check_names(h: &Host, doc: Doc, job: &mut Job) -> std::result::Result<(), HostError> {
let (count, saved_ignore, saved_fit, saved_tiled, mut base_profile) = with_doc(h, doc, |_, st| {
let mode = st.doc.print_setup.as_ref().and_then(|v| v.get("artboards")).and_then(Value::as_str);