Re: About decrypt pdf using pdfbox 2.0.1

2016-07-04 Thread Tilman Hausherr
Hello Barry, You created that file with a user password "abcd" and an empty owner password. PDFBox first tries to open the file with the owner password, and succeeds. Adobe Reader and PDF.js apparently insist on the user password, and don't expect the owner password to be empty. That it di

samplepdfread1.pdf

2016-07-04 Thread Barry Zhao [Zhao] (via Google Drive)
I've shared an item with you: samplepdfread1.pdf https://drive.google.com/file/d/0B2RK53mIzwataGxRVnMtem81cUE/view?usp=sharing&invite=COPlh40N&ts=577b2a83 It's not an attachment -- it's stored online. To open this item, just click the link above.

Re: About decrypt pdf using pdfbox 2.0.1

2016-07-04 Thread zhaozhao
Hi Tilman, Thanks for your response first. I upgraded PDFBox from 2.0.1 to 2.0.2. And I tested again using the code I sent in the last email. And here are the steps. 1. Run my code with PDFBox 2.0.2 using the provided pdf file. 2. [Expected result] The schema like: ?__^?k_?7 PDTextbox 3.