pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler <andr...@lehmi.de>
Subject Re: is it possible to write non-WinAnsiEncoding characters (utf-8) to PDF ?
Date Mon, 09 Dec 2013 11:29:17 GMT
Hi,

> Martin Minka <martin.minka@gmail.com> hat am 5. Dezember 2013 um 22:11
> geschrieben:
>
>
> So far I was able to solve all my problems with pdfbox, but at this moment
> I got very much lost.
>
> My problem is similar to one described with code example here :
> http://stackoverflow.com/questions/13274578/java-write-national-characters-to-pdf-using-pdfbox
>
> I want to print to PDF text with characters like: "ŽžŤťČ芚Áá" or the
> german characters "üöäÄÜÖß".
>
> Is there existing solution ?
No, not yet. PDFBox supports only WinANSI encoded true type fonts. Some/most of
the mentioned special
characters should work as long as you pass CP1252 encoded string to the
drawString method.

> I found few bugs related to utf8 in Jira and few questions on
> stackoverflow, tried a lot, but at this moment I really got lost.
PDFBOX-922 [1] will add unicode support to PDFBOX.

> Thank you for any hint,
> Martin

BR
Andreas Lehmkühler

[1] https://issues.apache.org/jira/browse/PDFBOX-922

Mime
View raw message