pdfOkToPrint
Check to see if the PDF file allows printing.
int pdfOkToPrint(PDFViewerHandle viewer)
This function returns non-zero if printing is allowed, or zero if the
currently displayed PDF file is encrypted and does not allow printing
(or if no PDF file is currently open).
The owner password can be used to circumvent this: if a valid owner
password was supplied to pdfLoadFileWithPassword
, this function
will always return non-zero.
If this function returns zero, the printing functions will return an error.
C:
if (!pdfOkToPrint(viewer)) {
/* the currently displayed PDF file is set to disallow printing */
...
}