[jira] [Commented] (FOP-2931) SVG with a 'TextPath' element does not show in PDF

2023-07-25 Thread Dave Roxburgh (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746836#comment-17746836
 ] 

Dave Roxburgh commented on FOP-2931:


The given SVG is malformed - href is from the xlink namespace, not svg. My 
guess is that browsers are tolerant of poorly-written SVG documents.

Run against svgwithtextpath.svg, Batik's PNGTranscoder throws a 
StringIndexOutOfBoundsException as BridgeContext.getReferencedNode() tries to 
resolve the href attribute.

The same error occurs when FOP tries to use Batik to include the SVG.

[^test-xlink.svg] is svgwithtextpath.svg made valid.

> SVG with a 'TextPath' element does not show in PDF
> --
>
> Key: FOP-2931
> URL: https://issues.apache.org/jira/browse/FOP-2931
> Project: FOP
>  Issue Type: Bug
>  Components: fo/inline, foreign/svg
>Affects Versions: 2.3
>Reporter: Redhwan Nacef
>Priority: Major
> Attachments: svgwithtextpath.svg, test-xlink.svg
>
>
> After adding a TextPath element to an SVG, the SVG no longer renders in the 
> PDF. The SVG works fine on browsers. Wikipedia shows Batik (the SVG renderer 
> for Apache FOP) is compatible with TextPath: 
> [https://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Scalable_Vector_Graphics)].
> Attached is a sample SVG.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-2931) SVG with a 'TextPath' element does not show in PDF

2020-04-14 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17083152#comment-17083152
 ] 

Simon Steiner commented on FOP-2931:


You should test using batik to see if this should be a batik bug

> SVG with a 'TextPath' element does not show in PDF
> --
>
> Key: FOP-2931
> URL: https://issues.apache.org/jira/browse/FOP-2931
> Project: FOP
>  Issue Type: Bug
>  Components: fo/inline, foreign/svg
>Affects Versions: 2.3
>Reporter: Redhwan Nacef
>Priority: Major
> Attachments: svgwithtextpath.svg
>
>
> After adding a TextPath element to an SVG, the SVG no longer renders in the 
> PDF. The SVG works fine on browsers. Wikipedia shows Batik (the SVG renderer 
> for Apache FOP) is compatible with TextPath: 
> [https://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Scalable_Vector_Graphics)].
> Attached is a sample SVG.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)