You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (Jira)" <ji...@apache.org> on 2020/06/20 20:21:00 UTC
[jira] [Updated] (PDFBOX-3835) Wrap long words for multiline text
fields
[ https://issues.apache.org/jira/browse/PDFBOX-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun updated PDFBOX-3835:
-----------------------------------
Summary: Wrap long words for multiline text fields (was: Text not broken across lines after refreshAppearances)
> Wrap long words for multiline text fields
> ------------------------------------------
>
> Key: PDFBOX-3835
> URL: https://issues.apache.org/jira/browse/PDFBOX-3835
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Reporter: Simon Steiner
> Assignee: Maruan Sahyoun
> Priority: Major
> Fix For: 2.0.21, 3.0.0 PDFBox
>
> Attachments: PDFBOX-3835-input-acrobat-wrap.pdf, input.pdf
>
>
> PDDocument doc = PDDocument.load(new File(input));
> PDAcroForm acroform = doc.getDocumentCatalog().getAcroForm();
> if (acroform != null) {
> acroform.setNeedAppearances(false);
> acroform.refreshAppearances();
> }
> doc.save(output);
> doc.close();
> Text is not broken into multiple lines
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org