[
https://issues.apache.org/jira/browse/PDFBOX-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326498#comment-15326498
]
Donghe Youn commented on PDFBOX-3377:
-------------------------------------
I found symbolic link and wrong font files (some kind of properties file of
font alias, scale with ".ttf" extension) in /usr/X11R6/lib/X11/fonts
I moved those files and problem solved.
Thanks.
{noformat}
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,490]-TTF: 'Courier-ThaiA'
/ 'Courier Thai' / 'A'
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,490]-@
FileSystemFontProvider.scanFonts() file :
/usr/X11R6/lib/X11/fonts/TrueType/fonts.alias.ttf
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,490]-@
FileSystemFontProvider.scanFonts() file.getName() : fonts.alias.ttf
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,491]-@
FileSystemFontProvider.scanFonts() file.getPath() :
/usr/X11R6/lib/X11/fonts/TrueType/fonts.alias.ttf
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,503]-Could not load font
file: /usr/X11R6/lib/X11/fonts/TrueType/fonts.alias.ttf
java.io.EOFException
at
org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:152)
at
org.apache.fontbox.ttf.TTFParser.readTableDirectory(TTFParser.java:306)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:139)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:87)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeFont(FileSystemFontProvider.java:523)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.scanFonts(FileSystemFontProvider.java:261)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.<init>(FileSystemFontProvider.java:232)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvider.<clinit>(FontMapperImpl.java:130)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.getProvider(FontMapperImpl.java:149)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMapperImpl.java:413)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.getCIDFont(FontMapperImpl.java:483)
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:151)
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:69)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125)
at
org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:128)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:123)
at
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
at
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
at
org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94)
at
kr.ac.snu.file.downloadHandler.DownloadHandler.testStreamDn(DownloadHandler.java:802)
at
kr.ac.snu.file.downloadHandler.DownloadHandler.StreamDn(DownloadHandler.java:182)
at
kr.ac.snu.file.downloadHandler.DownloadHandler.handleRequest(DownloadHandler.java:140)
at
org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
at
jeus.servlet.engine.ServletWrapper.executeServlet(ServletWrapper.java:329)
at
jeus.servlet.filter.FilterChainImpl.internalDoFilter(FilterChainImpl.java:138)
at jeus.servlet.filter.FilterChainImpl.doFilter(FilterChainImpl.java:90)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
jcf.snu.iam.filter.SnuExceptionTranslationFilter.doFilter(SnuExceptionTranslationFilter.java:56)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
jcf.snu.iam.customExtenalAuthProcessingHandler.SnuSsoAuthenticationFilter.doFilter(SnuSsoAuthenticationFilter.java:221)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at
jeus.servlet.filter.FilterChainImpl.internalDoFilter(FilterChainImpl.java:121)
at jeus.servlet.filter.FilterChainImpl.doFilter(FilterChainImpl.java:90)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
jeus.servlet.filter.FilterChainImpl.internalDoFilter(FilterChainImpl.java:121)
at jeus.servlet.filter.FilterChainImpl.doFilter(FilterChainImpl.java:90)
at jeus.servlet.engine.ServletWrapper.execute(ServletWrapper.java:205)
at
jeus.servlet.engine.WebtobRequestProcessor.run(WebtobRequestProcessor.java:253)
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,506]-@
FileSystemFontProvider.scanFonts() file :
/usr/X11R6/lib/X11/fonts/TrueType/fonts.scale.ttf
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,507]-@
FileSystemFontProvider.scanFonts() file.getName() : fonts.scale.ttf
WARN(FileSystemFontProvider.java)[2016-06-12 23:52:01,507]-@
FileSystemFontProvider.scanFonts() file.getPath() :
{noformat}
> 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, 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]