Returns the print-related preferences encoded in the PDF's
ViewerPreferences dictionary: whether the viewer should honor the
author's print scaling, the suggested number of copies, the
paper-handling (duplex) option, and the print-page-range
specification. Wraps the FPDF_VIEWERREF_* family.
Arguments
- doc
A
pdfium_docfrompdf_doc_open(), or a character path.- password
Optional password for encrypted PDFs when
docis a path. Ignored whendocis already an openpdfium_doc.
Value
A named list with:
print_scaling(logical) — TRUE if the author wants the viewer's print dialog to use its default scaling.num_copies(integer) — suggested copies; 1 if not set.duplex(character) — one of"none","simplex","duplex_flip_short_edge","duplex_flip_long_edge".print_page_ranges(integer) — 1-based page numbers the author suggests printing; empty when unspecified.