[ https://issues.apache.org/jira/browse/PDFBOX-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362811#comment-14362811 ]
Tilman Hausherr commented on PDFBOX-2701: ----------------------------------------- If the password is incorrect you'll get an exception. Don't use isOwnerPassword(), although the method is public, it isn't mean for the average user. Whether a correct password is user or owner password you can know by querying getCurrentAccessPermission() and then isOwnerPermission(). Please ask further questions about this in the user mailing list: https://mail-archives.apache.org/mod_mbox/pdfbox-users/ > I am facing problem in isEncrypted() method . > --------------------------------------------- > > Key: PDFBOX-2701 > URL: https://issues.apache.org/jira/browse/PDFBOX-2701 > Project: PDFBox > Issue Type: Bug > Affects Versions: 1.8.8 > Environment: java -version > java version "1.6.0_27" > Java(TM) SE Runtime Environment (build 1.6.0_27-b07) > Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) > Reporter: sathish kumar s > > I am using isEncrypted() method, This > file(https://www.dropbox.com/s/ukjx3mcpkuaui2i/sample.pdf?dl=0) not a > password protected file. but saying this file is password protected. i don't > know how to fix it.?? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org