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 2022/12/21 15:51:06 UTC
svn commit: r1906142 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
Author: tilman
Date: Wed Dec 21 15:51:06 2022
New Revision: 1906142
URL: http://svn.apache.org/viewvc?rev=1906142&view=rev
Log:
PDFBOX-4892: improve javadoc
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java?rev=1906142&r1=1906141&r2=1906142&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java Wed Dec 21 15:51:06 2022
@@ -706,8 +706,12 @@ public class PDPage implements COSObject
}
/**
- * This will set the list of annotations.
- *
+ * This will set the list of annotations. Although this is optional, you should take care that
+ * any newly created annotations link back to this page by calling
+ * {@link PDAnnotation#setPage(org.apache.pdfbox.pdmodel.PDPage)}. Not doing it
+ * <a href="https://stackoverflow.com/questions/74836898/">can cause trouble when PDFs get
+ * signed</a>.
+ *
* @param annotations The new list of annotations.
*/
public void setAnnotations(List<PDAnnotation> annotations)