pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1633503 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java
Date Wed, 22 Oct 2014 00:51:06 GMT
Author: jahewson
Date: Wed Oct 22 00:51:06 2014
New Revision: 1633503

URL: http://svn.apache.org/r1633503
Log:
PDFBOX-2423: Fix bug with AcroForm caching

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java?rev=1633503&r1=1633502&r2=1633503&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java Wed
Oct 22 00:51:06 2014
@@ -110,13 +110,14 @@ public class PDDocumentCatalog implement
     }
 
     /**
-     * Sets the acro form for this catalog.
+     * Sets the AcroForm for this catalog.
      *
-     * @param acro The new acro form.
+     * @param acroForm The new AcroForm.
      */
-    public void setAcroForm(PDAcroForm acro)
+    public void setAcroForm(PDAcroForm acroForm)
     {
-        root.setItem(COSName.ACRO_FORM, acro);
+        root.setItem(COSName.ACRO_FORM, acroForm);
+        cachedAcroForm = null;
     }
 
     /**



Mime
View raw message