pdfPrintSetEmulatedMultiCopy
Enable/disable emulated multi copy mode.
void pdfPrintSetEmulatedMultiCopy(PDFHandle pdf, int emulated)
By default, the copies (
pdfPrintSetCopies
) and collation
(pdfPrintSetCollate
) settings are passed to the printer driver.
But not all printers/drivers support printing multiple copies and/or
collation. The pdfPrintSetEmulatedMultiCopy
function can
be used to enable "emulated multi copy" mode, in which XpdfPrint will
generate a print stream with multiple copies (as specified by
pdfPrintSetCopies
) of each page, in proper order (as specified by
pdfPrintSetCollate
).
The advantage of emulated multi copy mode is that it will work on all printers. The disadvantage is that the spool file will be larger (because it contains multiple copies of each page).
Calling pdfPrintSetEmulatedMultiCopy
with a
non-zero emulated
argument enables emulated multi copy
mode. Calling with a zero emulated
argument disables it.
pdfPrintResetParams
resets emulated multi copy mode to be
disabled.
C:
pdfPrintSetEmulatedMultiCopy(pdf, 1);