[
https://issues.apache.org/jira/browse/PDFBOX-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15368951#comment-15368951
]
Tilman Hausherr commented on PDFBOX-3377:
-----------------------------------------
for the next person, here's how to enable debug logging with log4j for the
command line utilities:
1) create a log4j.xml file:
{code}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true"
xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss}
%-5p %c{1}:%L - %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="console" />
</root>
</log4j:configuration>
{code}
(it might also work with a log4j.config file, but I didn't test that)
2) create a lib subdirectory and copy log4j-1.2.17.jar there
3) download snapshot from
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.3-SNAPSHOT/
4) call the command line application (here: PDFReader)
{code}
java -Dlog4j.configuration=file:./log4j.xml
-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -cp
"pdfbox-app-2.0.3-SNAPSHOT.jar;lib/*" org.apache.pdfbox.tools.PDFBox PDFReader
{code}
> font caching never stops in AIX
> -------------------------------
>
> Key: PDFBOX-3377
> URL: https://issues.apache.org/jira/browse/PDFBOX-3377
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.2
> Environment: - OS : AIX Version 6.1
> - JVM : Java(TM) SE Runtime Environment (build
> pap6460sr10fp1-20120321_01(SR10 FP1))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64
> jvmap6460sr10fp1-20120202_101568 (JIT enabled, AOT enabled)
> - Web Application base on Spring Framework 3.1
> Reporter: Donghe Youn
> Attachments: 68de07fa7ca17b70ec7172c2556bd148-be32d4.cache-3,
> 9d6f1acc9ed66d78bb8add084e50806e-be32d4.cache-3,
> fea7b2ab5b2729f392c3a28e504125e0-be32d4.cache-3, font-files-aix.txt,
> fonts.alias.ttf, pdfbox377219359369560029tmp
>
>
> I'm trying to convert PDF to Image.
> When I call PDFRenderer.renderImage(), the log message like belows appears.
> {noformat}
> WARN(FileSystemFontProvider.java)[2016-06-10 10:44:39,969]-New fonts found,
> font cache will be re-built
> WARN(FileSystemFontProvider.java)[2016-06-10 10:44:39,969]-Building on-disk
> font cache, this may take a while
> {noformat}
> It never stops. No response or change since those message appears.
> I can't attach font cache file because I don't know where it is located.
> + I attached pdfbox tmp file "pdfbox377219359369560029tmp" that I found in
> /tmp/ directory.
> tail of the file is like belows
> {noformat}
> <?xpacket begin="癤? id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta
> xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.0-c316 44.253921, Sun Oct
> 01 2006 17:14:39"><rdf:RDF
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description
> rdf:about=""
> xmlns:pdf="http://ns.adobe.com/pdf/1.3/"><pdf:PDFVersion>1.4</pdf:PDFVersion><pdf:Producer>Hancom
> PDF 1.3.0.480</pdf:Producer></rdf:Description><rdf:Description rdf:about=""
> xmlns:xap="http://ns.adobe.com/xap/1.0/"><xap:CreatorTool>Hancom PDF
> 1.3.0.480</xap:CreatorTool><xap:CreateDate>2016-05-24T18:54:06+09:00</xap:CreateDate><xap:ModifyDate>2016-05-24T18:54:06+09:00</xap:ModifyDate><xap:MetadataDate>2016-05-24T18:54:06+09:00</xap:MetadataDate></rdf:Description><rdf:Description
> rdf:about=""
> xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:format>application/pdf</dc:format><dc:title><rdf:Seq><rdf:li>李⑥꽭?
> ??숉넻?⑹젙蹂댁떆?ㅽ뀥
> 援ъ텞?ъ뾽</rdf:li></rdf:Seq></dc:title><dc:date><rdf:Seq><rdf:li>2016-05-24T18:54:06+09:00</rdf:li></rdf:Seq></dc:date></rdf:Description><rdf:Description
> rdf:about=""
> xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/"><xapMM:DocumentID>43D906A6-241D-4E39-B165-0418769B224B</xapMM:DocumentID><xapMM:InstanceID>uuid:4AB60C4F-752D-4C5C-B438-65F54D57FDF1</xapMM:InstanceID></rdf:Description><rdf:Description
> rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/">
> <pdfaid:part>1</pdfaid:part>
> <pdfaid:conformance>B</pdfaid:conformance>
> </rdf:Description></rdf:RDF></x:xmpmeta><?xpacket end="w"?>
> {noformat}
> + I also attached three files found from $USER_HOME/.fontconfig directory
> which seem to be font cache files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]