pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tres Finocchiaro <tres.finocchi...@gmail.com>
Subject Re: Can't map code X in font exception
Date Thu, 02 Jul 2015 03:56:20 GMT
>From my experience the font mapping (1.8 branch) causes quite a bit of
noise in the logs.

And since 1.8 doesn't support embedding of fonts, the best way to suppress
the warnings is to either use the same font on both platforms, or compile
in a custom font mapping which will allow pdfbox to fallback onto a close

The issue here (I would suspect) is that Liberation (designed to be a free
alternative to a proprietary font) is what PDFBOX is looking for rather
than falling back on Times New Roman.

I had a lot of these issues with 1.8, which is why I started compiling my
own mapping in.


I'm sure the reverse could be done for Linux font names when loading the
PDF on Windows.


- Tres.Finocchiaro@gmail.com

On Wed, Jul 1, 2015 at 4:46 PM, Tilman Hausherr <THausherr@t-online.de>

> Am 01.07.2015 um 22:39 schrieb Alex Sviridov:
>>   I have the following situation. I generate pdf files in libre office on
>> ubuntu. The default font is Liberation Serif/Sans.
>> After that I run my application (with pdfbox) on windows and open that
>> file from ubuntu. And I get a lot of exceptions. I suppose I have exception
>> for every character!
> Are you sure it is exception and not just info or warning? And what are
> these?
> Tilman
>> Because of these exceptions the program runs very slow on windows. So how
>> to solve it? Maybe throwing exception on every characted is not good?
> ---------------------------------------------------------------------
> 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