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 2016/08/14 10:49:20 UTC
[jira] [Updated] (PDFBOX-3461) Improve handling of control
characters when setting AcroForm field values
[ https://issues.apache.org/jira/browse/PDFBOX-3461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun updated PDFBOX-3461:
-----------------------------------
Attachment: ControlCharacters.pdf
[^ControlCharacters.pdf] sample of fields filled manually and via JavaScript using Adobe Acrobat for NUL, CR, LF, TAB, CRLF, LFCR as well as U+2028 (line break) and U+2029 (paragraph break).
Will use it as the basis for implementing similar handling in PDFBox as well as a unit test.
> Improve handling of control characters when setting AcroForm field values
> -------------------------------------------------------------------------
>
> Key: PDFBOX-3461
> URL: https://issues.apache.org/jira/browse/PDFBOX-3461
> Project: PDFBox
> Issue Type: Improvement
> Components: AcroForm
> Affects Versions: 2.0.1, 2.0.2, 2.0.3, 2.1.0
> Reporter: Maruan Sahyoun
> Labels: Appearance
> Attachments: ControlCharacters.pdf
>
>
> When filling AcroForm fields the text supplied to {{setValue}} might contain control characters such as {{\n}} {{\r}}, {{\t}} and others which leads to an {{ java.lang.IllegalArgumentException}} for most fonts as there is no glyph to represent these.
> We could enhance the processing of the string provided to provide proper replacements similar to how Adobe Acrobat handles that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org