Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
To secure a PDF document with password protection and adjusting permissions on the document.
Encrypt and Decrypt PDF Files
Full sample code which illustrates some of our encryption support.
Although Apryse SDK offers an extension mechanism through which users can register custom security handlers, it also provides a standard security handler.
This built-in security handler is the Standard Security Handler (StdSecurityHandler). The Standard Security Handler supports two passwords:
An application can also create its own implementation of SecurityHandler. For example, a custom SecurityHandler could perform user authorization requiring the presence of a hardware dongle or even feedback from a biometric system.
A Security Handler is used when:
The number of security handlers associated with a document change over time. When the document is first opened it isn't associated with any security handlers. When InitSecurityHandler
(or InitStdSecurityHandler) is called on the document, that security handler is associated with the document. And when SetSecurityHandler
is called on a document, that security handler is also associated with the document—albeit in a pending state until the document is saved. Until the document is saved with the new security handler, the old security handler rules the document's security.
Besides providing full support for standard PDF security, Apryse SDK allows users to work with custom security handlers and proprietary encryption algorithms. For most use cases where the extra security of custom encryption is desired, it is recommended to use the Apryse Custom Security Handler . However, it is also possible to create a user-defined custom security handler by deriving a class from SecurityHandler and implementing its interface.
Please see the Apryse SDK Net Knowledge Base or contact support@apryse.com for more details.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales