deprecated_A3DPDFDocumentSetDocumentPermissions
-
A3DStatus
deprecated_A3DPDFDocumentSetDocumentPermissions(A3DPDFDocument *pDoc, int iPermissions) deprecated
A3DStatusdeprecated_A3DPDFDocumentSetDocumentPermissions(A3DPDFDocument* pDoc, int iPermissions)Function to set permissions on a document.
DeprecatedThis function is deprecated because it allows to generate a PDF file with permission and no owner password, which is not a good practice. Use
A3DPDFDocumentSetPasswordSecurity()instead. This will be removed in version 2026.1.0.Parameters
pDoc: The Document object to work with.
iPermissions: The permissions, composed of bit fields detailed in Bit Field to indicate the document permissions..
Returns
A3D_SUCCESS in case of success or an error code