[ https://issues.apache.org/jira/browse/PDFBOX-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173830#comment-15173830 ]
Christian Brandt edited comment on PDFBOX-3255 at 3/1/16 2:41 PM: ------------------------------------------------------------------ Oh well, the web site did hide that hyphen, but it looks like "a-b" except that the hyphen is not a normal hyphen but a soft hyphen instead. was (Author: dadacafe): Oh well, the web site did hide that hyphen too, but it looks like "a-b" except that the hyphen is not a normal hyphen. > 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-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org