You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
Hey guys,
I know it's possible to create a PDF with annotations on it that can't be edited without knowing a password. How would one accomplish that using PDFNet? We have the annotations writing out, and they are locked by default. However, you can simply turn off the lock in Acrobat without any special password or anything.
Thanks - Chris
Ryan
unread,
Jan 5, 2015, 7:34:31 PM1/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
If you look at the EncryptionTest sample code, you can see how to add a password to a PDF, and also how to specify the permissions, such as annotation editing, using StdSecurityHandler.SetPermission method.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
Thanks Ryan! I'll take a look at that.
I appreciate the help!
- Chris
Support
unread,
Jan 6, 2015, 2:03:39 PM1/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
Note that PDF security is based on 'trust' model your users will always be able to go around permissions (if they really want to).
Another option (that is a bit harder to tamper with) would be to flatten annotations by merging them to PDF content stream (e.g. annot.Flatten(page) or doc.FlattenAnnotations()).
Chris at Newforma
unread,
Jan 6, 2015, 2:32:52 PM1/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
If we were to merge them to a content stream, is there any way to still maintain the metadata?
Ryan
unread,
Jan 6, 2015, 3:45:23 PM1/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
By Metadata I assume you mean annotation related information, such as author, last modified date, etc?
That stuff all gets erased when flattening, but you can store it in the PDF before flattening so it is not lost, but it would become hidden data that only you know about, and would no longer be tied to the appearance of the annotation.