xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Steiner" <simonsteiner1...@gmail.com>
Subject RE: Error in Image loading in PDF using Apache Fo
Date Tue, 03 Nov 2020 15:58:25 GMT
Hi,

 

Can you convert them to pdf using a command line tool first such as ps2pdf before passing
to fop

 

Thanks

 

From: Tanvi Shah <tanvi.shah@springernature.com> 
Sent: 03 November 2020 10:34
To: fop-dev@xmlgraphics.apache.org
Cc: 'tanvis544@gmail.com' <tanvis544@gmail.com>
Subject: Error in Image loading in PDF using Apache Fo

 

Hi,

I am trying to load images with extension .eps and .emf. But i get the following error.

 

org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no suitable loader/converter
combination available) for file:///C:/Users/tsn6686/Downloads/3.eps (application/postscript)

at org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:272)

at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:159)

at org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218)

at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:181)

at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1301)

at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1288)

at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:1030)

at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:836)

at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:863)

at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:877)

at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:927)

at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:845)

at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:704)

at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)

at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:999)

at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)

at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)

at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:789)

at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:568)

at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)

at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)

at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:738)

at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)

at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)

at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)

at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)

at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)

at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:243)

at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:147)

at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)

at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)

at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)

at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)

at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)

at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)

at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)

at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)

at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)

at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)

at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)

at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)

at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)

at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)

at com.springernature.acdc.cms.poc.FOP.getPdf(FOP.java:78)

at com.springernature.acdc.test.TestPdf.testPdf(TestPdf.java:33)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)

at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)‚Äč

 

 

I also have added dependency of jai-imageio-core whith 1.4 version but still it doesn't work.
Is there any other way to add these graphics? 

Thank you.

  _____  

Disclaimer: This e-mail is confidential and should not be used by anyone who is not the original
intended recipient. If you have received this e-mail in error please inform the sender and
delete it from your mailbox or any other storage mechanism. Springer Nature Technology and
Publishing Solutions Private Limited does not accept liability for any statements made which
are clearly the sender's own and not expressly made on behalf of Springer Nature Technology
and Publishing Solutions Private Limited or one of their agents.
Please note that Springer Nature Technology and Publishing Solutions Private Limited and their
agents and affiliates do not accept any responsibility for viruses or malware that may be
contained in this e-mail or its attachments and it is your responsibility to scan the e-mail
and attachments (if any).
Springer Nature Technology and Publishing Solutions Private Limited. Registered office: Upper
Ground Floor, Wing B, Tower 8, Magarpatta City SEZ, Hadapsar Pune MH 411013 IN
Registered number: U72200PN2006FTC128967


Mime
View raw message