That worked. Thank you very much!

2016-11-23 9:41 GMT+01:00 Maruan Sahyoun <[email protected]>:

> Hi,
>
>
>
> > Am 23.11.2016 um 09:28 schrieb Neus Arbó <[email protected]>:
> >
> > I tried to save the document, and then read it again with pdfbox and
> print
> > it. The document is saved with all the fields filled, but when I read it
> > and print it, the fields are printed empty
> >
>
> that's because the NeedAppearances flag for the form is set to true which
> PDFBox 2.0.x treats as not to generate an appearance stream for the form
> fields as this is interpreted as an indication that the appearance will be
> generated by a viewing application. See https://issues.apache.org/
> jira/browse/PDFBOX-3356.
>
> As this was not intuitive for most users we've changed that so that from
> 2.1.x on - which has yet to be released - PDFBox will always generate an
> appearance stream regardless of that setting. This is also to reflect a
> change in the upcoming PDF 2.0 specification which is deprecating that flag
> and requires filling applications to generate the appearance stream.
>
> The workaround for 2.0.x is to set the NeedApparances flag to false prior
> to filling the form using PDAcroForm.setNeedAppearances(Boolean value).
>
> BR
> Maruan
>
>
>
> > 2016-11-23 9:24 GMT+01:00 Neus Arbó <[email protected]>:
> >
> >> Yes, because I fill them from Java. And I'm sending the document to
> >> printer using Java. You can see the code I'm using to fill the fields
> and
> >> to print the document in the first email I send...
> >> Is practically the same code I was using with pdfbox 1.8.12 (Except some
> >> lines like the way I print it using PDFPageable, that it's the way I
> have
> >> to print it according the Migration guide). And in pdfbox 1.8.12 the
> fields
> >> where printing correctly, and in pdfbox 2.0.3 the fields are not
> printing
> >> anymore.
> >>
> >> 2016-11-22 19:10 GMT+01:00 Tilman Hausherr <[email protected]>:
> >>
> >>> Am 22.11.2016 um 09:47 schrieb Neus Arbó:
> >>>
> >>>> This is the pdf document
> >>>> https://drive.google.com/file/d/0B1_3_sVPnBolbjc3U21LTUFTeDg
> >>>> /view?usp=sharing
> >>>>
> >>>
> >>> The fields do not have any content.
> >>>
> >>>
> >>> Tilman
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to