Skip to content

Commit 2f21712

Browse files
committed
PDFBOX-5660: clarify javadoc for SO79560213
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924936 13f79535-47bb-0310-9956-ffa450edef68
1 parent 61105fd commit 2f21712

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,8 @@ Set<PDFont> getFontsToSubset()
926926
* <p>
927927
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
928928
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
929+
* The same applies if your file was created from parts of another file and that
930+
* one is to be used after saving.
929931
*
930932
* @param fileName The file to save as.
931933
*
@@ -943,6 +945,8 @@ public void save(String fileName) throws IOException
943945
* <p>
944946
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
945947
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
948+
* The same applies if your file was created from parts of another file and that
949+
* one is to be used after saving.
946950
*
947951
* @param file The file to save as.
948952
*
@@ -960,6 +964,8 @@ public void save(File file) throws IOException
960964
* <p>
961965
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
962966
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
967+
* The same applies if your file was created from parts of another file and that
968+
* one is to be used after saving.
963969
*
964970
* @param output The stream to write to. It is recommended to wrap it in a {@link java.io.BufferedOutputStream},
965971
* unless it is already buffered.
@@ -978,6 +984,8 @@ public void save(OutputStream output) throws IOException
978984
* <p>
979985
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
980986
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
987+
* The same applies if your file was created from parts of another file and that
988+
* one is to be used after saving.
981989
*
982990
* @param file The file to save as.
983991
* @param compressParameters The parameters for the document's compression.
@@ -1005,6 +1013,8 @@ public void save(File file, CompressParameters compressParameters) throws IOExce
10051013
* <p>
10061014
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
10071015
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
1016+
* The same applies if your file was created from parts of another file and that
1017+
* one is to be used after saving.
10081018
*
10091019
* @param fileName The file to save as.
10101020
* @param compressParameters The parameters for the document's compression.
@@ -1023,6 +1033,8 @@ public void save(String fileName, CompressParameters compressParameters) throws
10231033
* <p>
10241034
* If encryption has been activated (with {@link #protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy)
10251035
* protect(ProtectionPolicy)}), do not use the document after saving because the contents are now encrypted.
1036+
* The same applies if your file was created from parts of another file and that
1037+
* one is to be used after saving.
10261038
*
10271039
* @param output The stream to write to. It is recommended to wrap it in a {@link java.io.BufferedOutputStream},
10281040
* unless it is already buffered.
@@ -1299,6 +1311,8 @@ public void close() throws IOException
12991311
* previously and logs a warning.
13001312
* <p>
13011313
* Do not use the document after saving, because the structures are encrypted.
1314+
* The same applies if your file was created from parts of another file and that
1315+
* one is to be used after saving.
13021316
*
13031317
* @see org.apache.pdfbox.pdmodel.encryption.StandardProtectionPolicy
13041318
* @see org.apache.pdfbox.pdmodel.encryption.PublicKeyProtectionPolicy

0 commit comments

Comments
 (0)