You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Christian Brandt (JIRA)" <ji...@apache.org> on 2016/03/01 15:36:18 UTC

[jira] [Updated] (PDFBOX-3255) Reasonable way to handle missing characters in font

     [ https://issues.apache.org/jira/browse/PDFBOX-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Brandt updated PDFBOX-3255:
-------------------------------------
    Attachment: TEST.pdf

The error can be reproduced by trying to set field "tenderChanges" value to "a­b". Note that hyphen is actually a soft hyphen (c2 ad in UTF-8).

> Reasonable way to handle missing characters in font
> ---------------------------------------------------
>
>                 Key: PDFBOX-3255
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3255
>             Project: PDFBox
>          Issue Type: Wish
>          Components: AcroForm
>    Affects Versions: 2.0.0
>            Reporter: Christian Brandt
>              Labels: newbie
>         Attachments: TEST.pdf
>
>
> Hello,
> We have an issue with setting form field values if the input contains characters that cannot be rendered with the associated font. The system throws similar exception to:
> java.lang.IllegalArgumentException: U+0308 ('dieresiscmb') is not available in this font's encoding: MacRomanEncoding with differences
> Currently this is problematic to be handled outside the framework because based on my understanding (please correct me if I'm wrong) the caller does not have a way to figure out what font will be eventually used and therefore which characters are not renderable.
> What we would ultimately like, is that the library would optionally replace unrenderable characters with some another existing character (e.g. space) instead of failing the call, or that the library would provide a way to recover from this error so that the user would be able to call the method again with altered input. 



--
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