[ 
https://issues.apache.org/jira/browse/PDFBOX-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718414#comment-13718414
 ] 

William Palmer commented on PDFBOX-1651:
----------------------------------------

I am trying to see if a pdf has permissions set and am seeing a similar issue 
as reported above.  I am using pdfbox 1.8.2.

This code appears to return the same permissions whatever the document:
AccessPermission perms = parser.getPDDocument().getCurrentAccessPermission()

This code returns more of what I would expect to see:
AccessPermission perms = new 
AccessPermission(parser.getDocument().getEncryptionDictionary().getInt("P"));

                
> PDFBox doesn't read the permission bits correct. 
> PDDocument.getCurrentAccessPermission().canPrint() is allways returning true 
> irrespective of the document print permissions
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1651
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1651
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.7.1
>         Environment: Windows 7,Oracle JDeveloper 
>            Reporter: kuchi bhargav
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
>  PDDocument.getCurrentAccessPermission().canPrint() is allways returning true 
> irrespective of the document print permissions

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to