read these:
http://www.fileformat.info/info/unicode/char/0081/fontsupport.htm
http://www.fileformat.info/info/unicode/char/0082/fontsupport.htm
https://en.wikipedia.org/wiki/Latin-1_Supplement_%28Unicode_block%29
Tilman
Am 30.10.2015 um 14:08 schrieb Paolo Contessi:
Hello everybody,
I’m trying to produce a PDF/A-1b which contains both japanese and latin
characters but I get the following error:
java.lang.IllegalArgumentException: No glyph for U+0082 in font
BitstreamVeraSans-Roman
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.encode(PDCIDFontType2.java:382)
at
org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:338)
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:282)
at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:311)
... 31 more
The same problem occurs if I try to run the example at
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java?revision=1703059&view=co
<https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java?revision=1703059&view=co>
Exception in thread "main" java.lang.IllegalArgumentException: No glyph for
U+0081 in font LiberationSans
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.encode(PDCIDFontType2.java:382)
at
org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:338)
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:282)
at
org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:341)
at
biz.videomed.tvm.hubapps.checklist.model.EmbeddedFonts.main(EmbeddedFonts.java:64)
If I’m right the problem is that the font is not able to render that character,
what font can I use or how can I solve this issue?
I’m working on both Mac OS X El Captain and Ubuntu 12.04-32bit, Java 7.
Paolo Contessi
(Software engineer)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]