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

Tilman Hausherr closed PDFBOX-4425.
-----------------------------------
    Resolution: Won't Do

Type 1 Helvetica has only a few characters and doesn't support Chinese. To show 
Chinese text, choose a font and load it with PDType0Font.load().

Re the bullet, I can't tell from your text whether the problem is in PDFBox or 
in Boxable. But it is likely that there are several bullet characters and only 
one of them is supported. I recommend you create an issue with them or on 
stackoverflow.

"simply skipped and throw no exception" is a bad idea, because this way PDFs 
would be created and nobody noticing, except the recipients. Who would then 
make a screenshot and post it on twitter and ridicule the sender's IT skills.

PDFBox (fontbox) does look for fonts on the OS, but not for specific skills, 
like "Can it do Chinese". The easiest would be to search for a few "famous" 
Chinese fonts, that would usually exist on a computer.

> Font Encoding Feature
> ---------------------
>
>                 Key: PDFBOX-4425
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4425
>             Project: PDFBox
>          Issue Type: New Feature
>    Affects Versions: 2.0.13
>            Reporter: Pruteanu Dragos
>            Priority: Major
>
> I use PdfBox in an desktop application, which can be used by any user, with 
> any language( EN, Chinese, etc. ). There are cases when I get exceptions like 
> this: 
> java.lang.IllegalArgumentException:U+F0A7('.notedef' is not available in this 
> font Helvetica-Bold encoding: WinAnsiEncoding
> at org.apache.pdfbox.pdfmodel.font.PDType1Font.encode(PDType1Font.jaav:426), 
> PdfFont.encode(PDFont.java:324), PDFont.getStringWidth(PDFont.java:353),... 
> be.quodlibet.boxable.....
> I am using the boxable library to represent tables in PdfBox. This case seems 
> to be from a text where a bullet is used ( a kind of ''*').
> How is possible for me to avoid this errors ? I would like the characters 
> which cannot be mapped to be simply skipped and throw no exception. Maybe to 
> have a PdfBox setting .setIgnoreUnknownCharacters() ?
> Also, which is the best approach so PdfBox works for peoples using Chinese on 
> their computer ? Can PdfBox look for the proper font in the Operating System ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to