2017-05-17 60 views
0

我一直在搜索網絡和過去一個月的SO,這個問題與我生成PDF文件的Web應用程序有關。我正在使用PDFBox app-2.0.4..jar並在這些pdf文件上嵌入文本,特別是僅使用PDType1Font對象。這些對象作爲PDType1Font.HELVETICA或TIMES_ROMAN的參數傳遞。該Web應用程序託管在apache tomcat上,並且這些pdf文件在沒有任何問題的情況下生成,並且在整個文件中視覺上都是正確的(粗體/高度/字體類型),但是當我檢查Web應用程序的日誌時,以下:PDFBox 2.0.4。嵌入式字體在運行Web應用程序時未被Tomcat找到

<DEBUG 2017-05-17 00:13:19,270 - FontFileFinder - checkFontfile found C:\Windows\FONTS\vijayab.ttf <DEBUG 2017-05-17 00:13:19,270 - FontFileFinder - checkFontfile check C:\Windows\FONTS\vrinda.ttf <DEBUG 2017-05-17 00:13:19,270 - FontFileFinder - checkFontfile found C:\Windows\FONTS\vrinda.ttf <DEBUG 2017-05-17 00:13:19,271 - FontFileFinder - checkFontfile check C:\Windows\FONTS\vrindab.ttf <DEBUG 2017-05-17 00:13:19,271 - FontFileFinder - checkFontfile found C:\Windows\FONTS\vrindab.ttf <DEBUG 2017-05-17 00:13:19,271 - FontFileFinder - checkFontfile check C:\Windows\FONTS\webdings.ttf <DEBUG 2017-05-17 00:13:19,271 - FontFileFinder - checkFontfile found C:\Windows\FONTS\webdings.ttf <DEBUG 2017-05-17 00:13:19,272 - FontFileFinder - checkFontfile check C:\Windows\FONTS\wingding.ttf <DEBUG 2017-05-17 00:13:19,272 - FontFileFinder - checkFontfile found C:\Windows\FONTS\wingding.ttf <DEBUG 2017-05-17 00:13:19,289 - FileSystemFontProvider - Loaded TimesNewRomanPSMT from C:\Windows\FONTS\times.ttf <DEBUG 2017-05-17 00:13:19,290 - FileSystemFontProvider - Loaded TimesNewRomanPS-BoldMT from C:\Windows\FONTS\timesbd.ttf <DEBUG 2017-05-17 00:13:19,291 - FileSystemFontProvider - Loaded TimesNewRomanPS-ItalicMT from C:\Windows\FONTS\timesi.ttf <DEBUG 2017-05-17 00:13:19,292 - FileSystemFontProvider - Loaded TimesNewRomanPS-BoldItalicMT from C:\Windows\FONTS\timesbi.ttf <DEBUG 2017-05-17 00:13:19,292 - FileSystemFontProvider - Loaded ArialMT from C:\Windows\FONTS\arial.ttf <DEBUG 2017-05-17 00:13:19,293 - FileSystemFontProvider - Loaded Arial-BoldMT from C:\Windows\FONTS\arialbd.ttf <DEBUG 2017-05-17 00:13:19,294 - FileSystemFontProvider - Loaded Arial-ItalicMT from C:\Windows\FONTS\ariali.ttf <DEBUG 2017-05-17 00:13:19,295 - FileSystemFontProvider - Loaded Arial-BoldItalicMT from C:\Windows\FONTS\arialbi.ttf

據我瞭解PDFBox的預裝了它自己的字體包,以便爲什麼會出現這些警告?

回答

0

1)「DEBUG」表示它是一個調試日誌條目。您已將日誌記錄設置爲DEBUG級別。將其設置爲「警告」,它們將消失。

2)「爲了我的理解,PDFBox預先安裝了自己的字體包」 - 不,它沒有,PDFBox只有一種字體(Liberation Sans Regular)作爲最壞的情況回退。你看到的是PDFBox收集有關安裝字體的信息。

3)當前的PDFBox版本是2.0.6。

+0

對不起,遲到的答覆,謝謝@TilmanHausherr。我們剛剛看到日誌條目對我們的項目沒有重大影響。當時我們只是想要特別小心,並且不按比例地對每一分鐘的信息進行細緻的處理。 – Tolo

相關問題