Hi Guys,

 

As you may recall I am trying to confirm the settings in the document
properties, and for this question on the Security Tab.  Thanks to Bruno -
who has been a great help - I have managed to do so but for a strange result
??

 

1. If I set a user password but leave all permissions to Not Allowed (I know
this doesn't make practical sense but bear with me), then reader.Permissions
returns 0C0. This indicates bits 7 and 8 are set but they are not used in
user access permissions.  So 0C0 is correct - my application interprets this
as Not Allowed for all settings and Acrobat displays the same.

 

2. If I now set 'Changes Allowed' to 'Inserting, deleting and rotating
pages' then reader.Permissions returns 4C0 indicating bit 11 is set.
Referring to PDF Spec 1.7 pp61 Table 22 this relates to the setting
'Document Assembly".  And this is also correct - my application correctly
shows 'Document Assembly' is Allowed with all other settings Not Allowed,
and the same is true for Acrobat.

 

3. If I now set 'Changes Allowed' to 'Any except extracting pages' then
reader.Permissions returns 1E8, indicating that bits 4, 6 and 9 are set.
Hence, my application which uses bit 11 (from 2 above) to determine if
'Document Assembly' is allowed returns Not Allowed because bit 11 is not
set.  However, Acrobat shows that 'Document Assembly' is Allowed.

 

I appreciate that this is almost certainly nothing to do with iTextSharp.
However, since you have a much better understanding of pdf than me, I was
wondering if anyone might be able to explain this result?

 

Many thanks.

 

 

Kind regards

William

William Bell

E: wrb...@btinternet.com

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to