I’m trying to create a PDF that allows users to open/copy/print without a password, but has a password for modifying. From the documentation on PDFPermissions, it appears I should be able to do that. No matter what I try, the document requires a password to view. I’ve tried this in Apple Preview, Adobe Reader, Nitro PDF Pro, PDF Expert, etc.
Var pdf As New PDFDocument
pdf.Compressed = True
Var per As New PDFPermissions("ownerPassword")
per.AllowCopyingContents = True
per.AllowModifyingContents = False
per.AllowPrinting = True
pdf.Permissions = per
I’ve also tried both of the following:
Var per As New PDFPermissions("ownerPassword", "")
per.UserPassword = ""
What am I missing?
10 posts - 3 participants