xpdfSpliceGetPermissions

Get the permission word from an input PDF file.
int xpdfSpliceGetPermissions(XpdfSpliceInputHandle in)
This function returns the permission word from an input PDF file.

The return value from this function is only valid if xpdfSpliceIsEncrypted returned non-zero.

The xpdfSplicePerm* constants can be used to test various permission bits:

For more information, see Table 3.20 in the PDF 1.7 spec.
C:
XpdfSpliceInputHandle in; int permissions; in = xpdfSpliceOpenInput("c:/test/file.pdf"); if (xpdfSpliceIsEncrypted(in)) { permissions = xpdfSpliceGetPermissions(in); if (!(permissions & xpdfSplicePermPrint)) { /* not allowed to print */ } }
xpdfSpliceIsEncrypted