You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/04/05 18:18:45 UTC
svn commit: r1857026 - in
/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox:
pdfwriter/COSWriter.java pdmodel/PDDocument.java
Author: tilman
Date: Fri Apr 5 18:18:45 2019
New Revision: 1857026
URL: http://svn.apache.org/viewvc?rev=1857026&view=rev
Log:
PDFBOX-45: improve javadoc
Modified:
pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1857026&r1=1857025&r2=1857026&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java (original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java Fri Apr 5 18:18:45 2019
@@ -232,7 +232,9 @@ public class COSWriter implements ICOSVi
}
/**
- * COSWriter constructor for incremental updates.
+ * COSWriter constructor for incremental updates. There must be a path of objects that have
+ * {@link COSUpdateInfo#isNeedToBeUpdated()} set, starting from the document catalog. For
+ * signatures this is taken care by PDFBox itself.
*
* @param outputStream output stream where the new PDF data will be written. It will be closed
* when this object is closed.
Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1857026&r1=1857025&r2=1857026&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Fri Apr 5 18:18:45 2019
@@ -1340,7 +1340,9 @@ public class PDDocument implements Close
/**
* Save the PDF as an incremental update. This is only possible if the PDF was loaded from a
- * file or a stream, not if the document was created in PDFBox itself.
+ * file or a stream, not if the document was created in PDFBox itself. There must be a path of
+ * objects that have {@link COSUpdateInfo#isNeedToBeUpdated()} set, starting from the document
+ * catalog. For signatures this is taken care by PDFBox itself.
*
* @param output stream to write to. It will be closed when done. It
* <i><b>must never</b></i> point to the source file or that one will be
@@ -1348,6 +1350,7 @@ public class PDDocument implements Close
* @throws IOException if the output could not be written
* @throws IllegalStateException if the document was not loaded from a file or a stream.
*/
+
public void saveIncremental(OutputStream output) throws IOException
{
COSWriter writer = null;