xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksei Badyaev (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FOP-2492) FOP-2.0 error when processing PDF with SVG image
Date Thu, 13 Aug 2015 05:25:46 GMT

     [ https://issues.apache.org/jira/browse/FOP-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksei Badyaev closed FOP-2492.
--------------------------------
       Resolution: Not A Problem
    Fix Version/s: 2.0

I remove metrics attributes in my fop.xconf file - and my doc processed correctly!
Thank you, Thanasis!

> FOP-2.0 error when processing PDF with SVG image
> ------------------------------------------------
>
>                 Key: FOP-2492
>                 URL: https://issues.apache.org/jira/browse/FOP-2492
>             Project: FOP
>          Issue Type: New Feature
>          Components: image/svg
>    Affects Versions: 2.0
>         Environment: Linux Gentoo x86
>            Reporter: Aleksei Badyaev
>            Priority: Blocker
>             Fix For: 2.0
>
>         Attachments: fop.xconf, object-model.svg, test.fo, test.xml
>
>
> I try process my small FO document with SVG image to PDF, and i got following output:
> <noformat>
> июн 29, 2015 12:02:46 AM org.apache.fop.apps.FopConfParser configure
> INFO: Default page-height set to: 297mm
> июн 29, 2015 12:02:47 AM org.apache.fop.apps.FopConfParser configure
> INFO: Default page-width set to: 210mm
> июн 29, 2015 12:02:55 AM org.apache.fop.events.LoggingEventListener processEvent
> WARNING: Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
> июн 29, 2015 12:02:58 AM org.apache.fop.events.LoggingEventListener processEvent
> SEVERE: SVG graphic could not be rendered. Reason: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.fop.fonts.MultiByteFont.getBoundingBox(MultiByteFont.java:210)
> 	at org.apache.fop.fonts.LazyFont.getBoundingBox(LazyFont.java:301)
> 	at org.apache.fop.svg.font.FOPGVTGlyphVector.buildBoundingBoxes(FOPGVTGlyphVector.java:428)
> 	at org.apache.fop.svg.font.FOPGVTGlyphVector.getBoundingBoxes(FOPGVTGlyphVector.java:420)
> 	at org.apache.fop.svg.font.FOPGVTGlyphVector.getGlyphMetrics(FOPGVTGlyphVector.java:290)
> 	at org.apache.batik.bridge.GlyphLayout.doExplicitGlyphLayout(Unknown Source)
> 	at org.apache.batik.bridge.GlyphLayout.adjustTextSpacing(Unknown Source)
> 	at org.apache.batik.bridge.GlyphLayout.getAdvance2D(Unknown Source)
> 	at org.apache.batik.bridge.StrokingTextPainter.getTextChunk(Unknown Source)
> 	at org.apache.batik.bridge.StrokingTextPainter.computeTextRuns(Unknown Source)
> 	at org.apache.fop.svg.NativeTextPainter.computeTextRuns(NativeTextPainter.java:223)
> 	at org.apache.batik.bridge.StrokingTextPainter.getTextRuns(Unknown Source)
> 	at org.apache.batik.bridge.StrokingTextPainter.getBounds2D(Unknown Source)
> 	at org.apache.batik.bridge.TextNode.getPrimitiveBounds(Unknown Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown
Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown
Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getBounds(Unknown Source)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
> 	at org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:207)
> 	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:249)
> 	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:205)
> 	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:170)
> 	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:292)
> 	at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:173)
> 	at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1295)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1282)
> 	at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:858)
> 	at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:832)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:863)
> 	at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:715)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:927)
> 	at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)
> 	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)
> 	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:999)
> 	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
> 	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:999)
> 	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
> 	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:999)
> 	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
> 	at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:457)
> 	at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:785)
> 	at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:434)
> 	at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:358)
> 	at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:305)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:738)
> 	at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:278)
> 	at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:243)
> 	at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:586)
> 	at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
> 	at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:315)
> 	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:216)
> 	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:140)
> 	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
> 	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
> 	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
> 	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
> 	at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 	at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:285)
> 	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
> 	at org.apache.fop.cli.Main.startFOP(Main.java:186)
> 	at org.apache.fop.cli.Main.main(Main.java:217)
> июн 29, 2015 12:02:59 AM org.apache.fop.events.LoggingEventListener processEvent
> INFO: Rendered page #1.
> </noformat>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message