pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "YE ..." <stephe...@hotmail.com>
Subject Re: PDFbox unable to render Chinese font correctly when converting pdf to images
Date Sat, 19 Aug 2017 07:19:53 GMT
Hi Tilman,

Thanks for the quick reply. I will check for commercial solutions with font hinting you mentioned

I have also included the links to the attachments mentioned in my previous email in case you
want to take a closer look.

PDF file:


You need to download it then use a PDF reader to open it so Chinese characters can be shown

Converted image:


Screenshot of the originally PDF displayed in PDF reader correctly:


Best regards,


From: Tilman Hausherr <THausherr@t-online.de>
Sent: Friday, August 18, 2017 4:18 PM
To: users@pdfbox.apache.org
Subject: Re: PDFbox unable to render Chinese font correctly when converting pdf to images

Hello Fangqiao,

Your files didn't get through, you must upload them to a sharehoster.
But I suspect that this is a known problem with chinese fonts, the cause
is explained here:
[PDFBOX-3293] Chinese font glyphs with overlapping paths ...<https://issues.apache.org/jira/browse/PDFBOX-3293>
Font glyphs with overlapping paths may be rendered in correctly, especially when the font
size is small. Sadly, the Traditional Chinese edition of Windows bundled ...

How to fix it - by implementing font hinting. Which we haven't done.
There is no workaround, sadly. (Except of course use better fonts when
creating the PDF).

There are some commercial java products (google for them). At least two
of them have implemented font hinting (the others I don't know).

Sorry for not having better news.


Am 18.08.2017 um 11:56 schrieb YE ...:
> Hi,
> I am from China and using PDFBox to convert pdf files to images. It
> worked excellently in most cases. Thanks a lot for the team's great work.
> However recently I used it to convert some invoices in PDF to images
> and then some Chinese characters weren't converted correctly. Attached
> is a sample PDF file, converted image and a screen shot of the
> original PDF opened in PDF reader, which displayed all Chinese correctly.
> I am seeking help from the community:
> - what's the possible cause for the problem?
> I guess that in the original pdf file some Chinese characters' font
> wasn't set correctly.
> - how to fix it?
> If the above guess is correct, is there a way to detect correct font
> type and set the correct font for conversion?
> - or is there other solution that can fix the problem?
> Many thanks,
> Fangqiao
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message