xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey B. (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FOP-2652) SVG image relative url is broken when rednering PDF
Date Sun, 02 Oct 2016 22:39:20 GMT

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

Sergey B. updated FOP-2652:
---------------------------
    Attachment: batik-svg-error.zip

Files for reproducing the bug are in archive batik-svg-error.zip. Here is a stacktrace:

{code}
fop.cmd -fo batik-svg-error.fo -pdf batik-svg-error.pdf
[2016-10-02 11:22:13] org.apache.fop.apps.FOUserAgent
SEVERE: SVG graphic could not be built. Reason: org.apache.batik.bridge.BridgeException: images\images\svg.svg
 (The system cannot find the path specified)
org.apache.batik.bridge.BridgeException: images\images\svg.svg (The system cannot find the
path specified)
        at org.apache.batik.bridge.BridgeContext.getReferencedNode(Unknown Source)
        at org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
        at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
        at org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
        at org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:104)
        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.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:215)
        at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:180)
        at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1296)
        at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1283)
        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:864)
        at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:715)
        at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:928)
        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:1000)
        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:739)
        at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:270)
        at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:243)
        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: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)

[2016-10-02 11:22:13] org.apache.fop.apps.FOUserAgent
INFO: Rendered page #1.
{code}

> SVG image relative url is broken when rednering PDF
> ---------------------------------------------------
>
>                 Key: FOP-2652
>                 URL: https://issues.apache.org/jira/browse/FOP-2652
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/svg
>    Affects Versions: 2.1
>         Environment: Windows 7 x64
> java 1.8.0_102 64-Bit
>            Reporter: Sergey B.
>         Attachments: batik-svg-error.zip
>
>
> When rendering fo-file into PDF urls to svg images are treated incorrectly because some
extra componets are preprended to them. Other images with similar urls works fine.
> {code}
> <fo:external-graphic src="url('images/svg.svg')"/> doesn't work
> <fo:external-graphic src="url('images/png.png')"/> has no problem
> {code}
> Files to reproduce are in zip archive batik-svg-error.zip.



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

Mime
View raw message