Author: tilman
Date: Tue Apr 8 11:25:40 2025
New Revision: 1924935
URL: http://svn.apache.org/viewvc?rev=1924935&view=rev
Log:
PDFBOX-5660: clarify javadoc for SO79560213
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL:
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1924935&r1=1924934&r2=1924935&view=diff
==============================================================================
---
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
(original)
+++
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Tue Apr 8 11:25:40 2025
@@ -1327,6 +1327,8 @@ public class PDDocument implements Close
* If encryption has been activated (with
* {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
protect(ProtectionPolicy)}),
* do not use the document after saving because the contents are now
encrypted.
+ * The same applies if your file was created from parts of another file
and that
+ * one is to be used after saving.
*
* @param fileName The file to save as.
*
@@ -1343,6 +1345,8 @@ public class PDDocument implements Close
* If encryption has been activated (with
* {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
protect(ProtectionPolicy)}),
* do not use the document after saving because the contents are now
encrypted.
+ * The same applies if your file was created from parts of another file
and that
+ * one is to be used after saving.
*
* @param file The file to save as.
*
@@ -1359,6 +1363,8 @@ public class PDDocument implements Close
* If encryption has been activated (with
* {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
protect(ProtectionPolicy)}),
* do not use the document after saving because the contents are now
encrypted.
+ * The same applies if your file was created from parts of another file
and that
+ * one is to be used after saving.
*
* @param output The stream to write to. It will be closed when done. It
is recommended to wrap
* it in a {@link java.io.BufferedOutputStream}, unless it is already
buffered.
@@ -1655,6 +1661,8 @@ public class PDDocument implements Close
* previously and logs a warning.
* <p>
* Do not use the document after saving, because the structures are
encrypted.
+ * The same applies if your file was created from parts of another file
and that
+ * one is to be used after saving.
*
* @see org.apache.pdfbox.pdmodel.encryption.StandardProtectionPolicy
* @see org.apache.pdfbox.pdmodel.encryption.PublicKeyProtectionPolicy