pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Oplinger - NOAA Affiliate <shawn.oplin...@noaa.gov.INVALID>
Subject Text not wrapping on a fillable PDF field
Date Mon, 10 Sep 2018 19:41:30 GMT

I have a fillable PDF form, that I am using PDFBox to successfully populate
with text values from my database.

I have one field however, that can contain up to 2,000 characters.
Using Adobe Acrobat Pro 2017, I set the field to "Multi-line", so that long
text will wrap instead of truncating. (see screenshot below).

If I paste 2,000 characters into the form field, using Adobe Acrobat, the
text successfully wraps, and I can see all 2,000 characters in the PDF form

When I use PDFBox however to populate the field with 2,000 characters, the
text does not wrap, and just truncates when it gets to the edge of the form
field in the PDF.

I upgraded to PDFBox version 2.0.11, based on Tilman's recommendation to a
similar issue I found on StackOverFlow:

-But after upgrading, the text still does not wrap, it just truncates when
it reaches the edge of the form field.

Any suggestions on how to get the text to wrap?


Shawn Oplinger
Systems Integration & Development, Inc. (SID)
National Oceanic and Atmospheric Administration
Email: Shawn.Oplinger@noaa.gov
Phone: 301-427-8844
Cell: 571-274-8078

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message