You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by webrtcgo <we...@gmail.com> on 2013/07/08 07:32:33 UTC

how to eliminate warn information while converting PDFs to image files

I am converting PDFs to image files using pdfbox which is very good.
I just do not know how to solve a little inconvenience.
I got these information on my console while converting PDFs to image files:
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <也> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <姓> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <刘> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <名> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <有> from <宋体> to the default font
10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <生> from <宋体> to the default font
10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <东> from <宋体> to the default font
10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <北> from <宋体> to the default font
10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <人> from <宋体> to the default font
......and many many more
I just want to eliminate these warn information from my console. Please tell me how to do that.
Thanks a lot for any help.





webrtcgo

From: webrtcgo
Date: 2013-07-08 11:36
To: users-subscribe
Subject: 

Re: how to eliminate warn information while converting PDFs to image files

Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Hi,

please avoid double postings on our mailing lists.

Am 08.07.2013 07:32, schrieb webrtcgo:
> I am converting PDFs to image files using pdfbox which is very good.
> I just do not know how to solve a little inconvenience.
> I got these information on my console while converting PDFs to image files:
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <也> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <姓> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <刘> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <名> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <有> from <宋体> to the default font
> 10:48:08,593 WARN  [PDSimpleFont:135] Changing font on <生> from <宋体> to the default font
> 10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <,> from <宋体> to the default font
> 10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <东> from <宋体> to the default font
> 10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <北> from <宋体> to the default font
> 10:48:08,609 WARN  [PDSimpleFont:135] Changing font on <人> from <宋体> to the default font
> ......and many many more
> I just want to eliminate these warn information from my console. Please tell me how to do that.
> Thanks a lot for any help.
You should use your own logging configuration. PDFBox provides a sample
configuration
file [1]. Use the folowing command line parameter to define use your own config file

-Djava.util.logging.config.file=logging.properties

> webrtcgo
> 
> From: webrtcgo
> Date: 2013-07-08 11:36
> To: users-subscribe
> Subject:


BR
Andreas Lehmkühler
[1]
http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/test/resources/logging.properties