pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1731286 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Fri, 19 Feb 2016 19:03:57 GMT
Author: tilman
Date: Fri Feb 19 19:03:57 2016
New Revision: 1731286

URL: http://svn.apache.org/viewvc?rev=1731286&view=rev
Log:
PDFBOX-2852: clarify javadoc

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1731286&r1=1731285&r2=1731286&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Fri
Feb 19 19:03:57 2016
@@ -655,6 +655,11 @@ public class PDDocument implements Pagea
      * associated with the document.  If you are adding a page to this document
      * from another document and want to copy the contents to this document's
      * scratch file then use this method otherwise just use the addPage method.
+     * 
+     * Unlike {@link #addPage}, this method does a deep copy. If your page has annotations,
and if
+     * these link to pages not in the target document, then the target document might become
huge.
+     * What you need to do is to delete page references of such annotations. See
+     * <a href="http://stackoverflow.com/a/35477351/535646">here</a> for how
to do this.
      *
      * @param page The page to import.
      * @return The page that was imported.



Mime
View raw message