Changes to support Protection and Attachments#20
Conversation
|
Thank you! I just tried it out (cloned, built, and opened) and I have a few questions:
If I'm confused, I assume someone else using this will be confused, so I'd like to clear these up before merging. Thanks again for working on this! |
|
I run linux and Evince too and have the same experience. It doesn't show the attachment or protection. However, the Adobe PDF reader on Windows shows both. The password to the document is "ownerPassword" and is in the test case. The user password is blank. PDFBox uses BouncyCastle to encrypt the PDF. If you remove it and try to run the test, it will fail saying the bouncy castle is not found. |
|
I made the requested change and also fixed the tabbing in pom.xml. I noticed if I use Firefox to view the PDF, the text is not visible, but the attachment is. When you load it in Firefox there is a square in the upper left hand corner with two embedded rectangles. Clicking on it reveals a paper-clip icon to the left of it. Clicking on this will reveal the attachment. I have still not found a way to reveal the write-protection on Linux other than the inability to open it with OpenOffice without a password. |
|
Okay, I found some other Linux tools that come as part of the Poppler package- For Encryption: For Attachments: |
|
Thank you for continuing to work on this.
|
A user password is used to limit who can open the PDF (only those with the password). I am sorry I don't have more expertise in the area and I understand your concerns with a stranger asking for changes. I too have limited understanding and just did what I needed to meet requirements. Again, please feel free to drop the pull request if you feel it introduces too much risk. I surely don't want to lead you down a messy path that would lead to the extinction of this project. Thanks again for the good work. |
I attempted to make minimal changes to ensure users have the ability to attach files and protect the PDF as needed. I also wrote up a simple test that should write-protect the document and include the sample PNG as an attachment.