Using Apache PDFBox: Set the log level from Linux installation fonts to log4j

Source: Internet
Author: User

In the process of using Apache PDFBox, the warning message is reported because there is no stsong-light font in the Linux environment

(pdcidfonttype0.java:147)-Using fallback ukaicn for cid-keyed font stsong-light

Search learned that this is an OpenType font introduced by Adobe, and found the suspect font adobesongstd-light.otf in Adobe's installation directory, copy the file to the Linux/usr/share/fonts directory, Because PDFBox will update the font-cache itself, so there is no manual update Font-cache, but ADOBESONGSTD-LIGHT.OTF is not stsong-light,warn information changed to

(pdcidfonttype0.java:147)-Using fallback adobesongstd-light for cid-keyed font stsong-light

Renaming the Adobesongstd-light.otf file to STSONG-LIGHT.OTF is still unresolved, using notepad++ to open the file, there is a lot of adobesongstd-light information in the content, it seems blocked.

Then change the direction to set the log4j log level, refer to http://blog.csdn.net/zmx729618/article/details/51260803, and adjust the log level of your own project code to info. Set the log level of the third-party jar package to error resolution.

Using Apache PDFBox: Set the log level from Linux installation fonts to log4j

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.