pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1749348 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
Date Mon, 20 Jun 2016 14:54:09 GMT
Author: msahyoun
Date: Mon Jun 20 14:54:09 2016
New Revision: 1749348

URL: http://svn.apache.org/viewvc?rev=1749348&view=rev
Log:
PDFBOX-3387: make sure the fields widget is printable

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java?rev=1749348&r1=1749347&r2=1749348&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
Mon Jun 20 14:54:09 2016
@@ -85,6 +85,9 @@ public final class CreateSimpleForm
         widget.setRectangle(rect);
         widget.setPage(page);
         
+        // make sure the annotation is visible on screen and paper
+        widget.setPrinted(true);
+        
         // Add the annotation to the page
         page.getAnnotations().add(widget);
         



Mime
View raw message