[
https://issues.apache.org/jira/browse/PDFBOX-5276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410120#comment-17410120
]
Tilman Hausherr commented on PDFBOX-5276:
-----------------------------------------
If you have enough memory, then you can save to a ByteArrayOutputStream and
reload from a byte array.
I have improved the javadoc, maybe this will help a user in the future.
> Encryption on Split documents
> -----------------------------
>
> Key: PDFBOX-5276
> URL: https://issues.apache.org/jira/browse/PDFBOX-5276
> Project: PDFBox
> Issue Type: Bug
> Components: Documentation, Utilities, Writing
> Affects Versions: 2.0.24
> Reporter: Dustin
> Priority: Major
> Fix For: 2.0.25, 3.0.0 PDFBox
>
> Attachments: ShouldNotBeEncrypted.pdf, screenshot-1.png
>
>
> Splitting a two page document into two separate documents via
> org.apache.pdfbox.multipdf.Splitter
> Then using the List<PDDocument> returned to encrypt the first document causes
> weird side effects on the second document in the list. It will still open
> with the owner password of the first document (Even though it shouldn't be
> encrypted), but it is unreadable.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]