[
https://issues.apache.org/jira/browse/PDFBOX-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694561#comment-13694561
]
Andreas Lehmkühler commented on PDFBOX-1651:
--------------------------------------------
I had a quick look:
- PDFBox provides standard values if the document isn't encrypted (that's
correct as the access permission are part of the encryption, so no encryption
-> no access permission -> default access permission)
- PDFBox provides standard values if the document is encrypted but and
getCurrentAccessPermission is called before decrypting the pdf
Please try to decrypt the pdf first.
IMO we should test if the pdf needs to be decrypted before returning a standard
access permission.
> 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