Thanks for your inquiry. Please check the following VB code snippet and documentation link for encrypting PDF files. Hopefully, it will help you to accomplish the task.
'open document
Dim document As New Document("input.pdf")
' encrypt PDF
document.Encrypt("user", "owner", 0, CryptoAlgorithm.RC4x128)
' save updated PDF
document.Save("output.pdf")
Pleas feel free to contact us for any further assistance
Best Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.