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: pdf font
Date Mon, 05 Jun 2017 20:13:37 GMT
Am 05.06.2017 um 19:57 schrieb Chuck Davis:
> My program has the following definitions:
>      private PDFont font;
>      font = PDType1Font.COURIER;
>      stream.setFont(font, fontSize);
> When I run the program (it was working fine last time I ran it) it is
> throwing the following:
> Caused by: java.lang.IllegalArgumentException: U+008F ('.notdef') is not
> available in this font Courier encoding: WinAnsiEncoding
>      at
> org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:425)
>      at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:323)
>      at
> org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:414)
> I am running openSUSE Tumbleweed.  I am wondering if openSUSE has messed up
> fonts since this worked in the recent past??

8F should be a bullet ("In WinAnsiEncoding, all unused codes greater 
than 40 map to the bullet character. However, only code 225 shall be 
specifically assigned to the bullet character; other codes are subject 
to future reassignment."). Maybe the courier font on your system doesn't 
have it?


To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message