pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: PDFBox 2.0.0-RC1 and mixed latin-japanese fonts
Date Fri, 30 Oct 2015 18:46:44 GMT
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: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message