2 qq 33111817 qq_33111817 于 2017.11.15 11:46 提问

用pdfbox把pdf转换成图片的时候,会出现invalid characters codes 5C

java.io.IOException: Invalid characters codes
at org.apache.fontbox.ttf.CmapSubtable.processSubtype12(CmapSubtable.java:239) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.fontbox.ttf.CmapSubtable.initSubtable(CmapSubtable.java:107) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.fontbox.ttf.CmapTable.read(CmapTable.java:84) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:377) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.fontbox.ttf.TrueTypeFont.getCmap(TrueTypeFont.java:282) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmap(TrueTypeFont.java:525) ~[fontbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:183) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:71) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:128) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:123) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:473) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:191) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:209) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139) ~[pdfbox-2.0.2.jar:2.0.2]
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68) ~[pdfbox-2.0.2.jar:2.0.2]
at com.cpic.jvglapp.claimserver.util.PDFUtils.produceImageFile(PDFUtils.java:290) ~[PDFUtils.class:na]
at com.cpic.jvglapp.claimserver.controller.tblclaimserver.TblClaimServerController.getLPXMLTest(TblClaimServerController.java:3685) ~[TblClaimServerController.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215) ~[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) ~[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:685) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:856) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ~[javax.servlet_1.0.0.0_2-5.jar:2.5]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829) ~[spring-webmvc-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet_1.0.0.0_2-5.jar:2.5]
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) ~[weblogic.jar:10.3.5.0]
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) ~[weblogic.jar:10.3.5.0]
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) ~[weblogic.jar:10.3.5.0]
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) ~[weblogic.jar:10.3.5.0]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) ~[BUG16088411_1035.jar:10.3.5.0]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:89) ~[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106) ~[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) ~[BUG16088411_1035.jar:10.3.5.0]
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180) ~[spring-orm-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106) ~[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) ~[BUG16088411_1035.jar:10.3.5.0]
at com.cpic.jvglapp.claimserver.filter.FilterListen.doFilter(FilterListen.java:99) ~[FilterListen.class:na]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) ~[BUG16088411_1035.jar:10.3.5.0]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729) ~[BUG16088411_1035.jar:10.3.5.0]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3695) ~[BUG16088411_1035.jar:10.3.5.0]
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) ~[com.bea.core.weblogic.security.identity_1.1.2.1.jar:1.1.2.1]
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) ~[com.bea.core.weblogic.security.wls_1.0.0.0_6-1-0-0.jar:6.1.0.0]
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2285) [BUG16088411_1035.jar:10.3.5.0]
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2184) [BUG16088411_1035.jar:10.3.5.0]
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459) [BUG16088411_1035.jar:10.3.5.0]
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) [com.bea.core.weblogic.workmanager_1.10.0.0.jar:1.10.0.0]
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) [com.bea.core.weblogic.workmanager_1.10.0.0.jar:1.10.0.0]

Csdn user default icon
上传中...
上传图片
插入图片