[
https://issues.apache.org/jira/browse/PDFBOX-3387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15339583#comment-15339583
]
Maruan Sahyoun commented on PDFBOX-3387:
----------------------------------------
That is caused as the assigned to the form field doesn't set any flags which
results in the {{Print}} flag not being set. So the state of the widget is
{{Visible but doesn't print}}. Adding
{code}
widget.setPrinted(true);
{code}
resolves that. As the default is somewhat unexpected here I'll change the
example to include the above statement. We could also discuss to make that the
default for new {{PDAnnotationWidget}} as the user typically adds fields to be
visible on screen an printed.
> AcroFrom fields (values) invisible when printing
> ------------------------------------------------
>
> Key: PDFBOX-3387
> URL: https://issues.apache.org/jira/browse/PDFBOX-3387
> Project: PDFBox
> Issue Type: Improvement
> Components: AcroForm
> Affects Versions: 2.0.2
> Reporter: kazu
> Assignee: Maruan Sahyoun
> Fix For: 2.0.3, 2.1.0
>
>
> AcrobatReader/FoxitReader/... won't print values of e.g. AcroForm TextFields
> within a PDF created with PDFBox. Neither the print-preview shows the values
> within the fields, nor does the printed result.
> Minimal example to reproduce:
> the one provided within the repository:
> https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/form/CreateSimpleForm.java
> Also had this issue with 1.8.x versions but maybe my code just wasn't
> correct..
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]