>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 equivalent. 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. https://github.com/qzindustries/qz-print/blob/1.8-pdfbox/pdfbox_1.8.4_qz/src/org/apache/pdfbox/resources/FontMapping.properties#L50 I'm sure the reverse could be done for Linux font names when loading the PDF on Windows. -Tres - [email protected] On Wed, Jul 1, 2015 at 4:46 PM, Tilman Hausherr <[email protected]> wrote: > 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: [email protected] > For additional commands, e-mail: [email protected] > >

