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 2017/07/19 17:02:44 UTC
svn commit: r1802411 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
Author: tilman
Date: Wed Jul 19 17:02:44 2017
New Revision: 1802411
URL: http://svn.apache.org/viewvc?rev=1802411&view=rev
Log:
PDFBOX-2852: improve javadoc
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java?rev=1802411&r1=1802410&r2=1802411&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java Wed Jul 19 17:02:44 2017
@@ -110,7 +110,8 @@ public final class PDPageContentStream i
private final byte[] formatBuffer = new byte[32];
/**
- * Create a new PDPage content stream.
+ * Create a new PDPage content stream. This constructor overwrites all existing content streams
+ * of this page.
*
* @param document The document the page is part of.
* @param sourcePage The page to write the contents to.
@@ -140,7 +141,10 @@ public final class PDPageContentStream i
}
/**
- * Create a new PDPage content stream.
+ * Create a new PDPage content stream. If the appendContent parameter is set to
+ * {@link AppendMode#APPEND}, you may want to use
+ * {@link #PDPageContentStream(PDDocument, PDPage, PDPageContentStream.AppendMode, boolean, boolean)}
+ * instead, with the fifth parameter set to true.
*
* @param document The document the page is part of.
* @param sourcePage The page to write the contents to.