You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Przemysław Boryka (JIRA)" <ji...@apache.org> on 2018/10/11 08:48:00 UTC

[jira] [Created] (BATIK-1241) Transcoder failed when transforming svg to pdf

Przemysław Boryka created BATIK-1241:
----------------------------------------

             Summary: Transcoder failed when transforming svg to pdf
                 Key: BATIK-1241
                 URL: https://issues.apache.org/jira/browse/BATIK-1241
             Project: Batik
          Issue Type: Bug
          Components: SVG Rasterizer
    Affects Versions: 1.10
            Reporter: Przemysław Boryka


 

During processing svg document by pdf transcoder I get failure:

The attribute "transform" of the element <text> is invalid

The document which I try to process has <text> elements inside. Those elements contains transform attribute. Example below:

<text class="c3-axis-x-label" transform="none" style="text-anchor: middle;font-size: 0.6rem;" x="243.546875" dx="0" dy="3em"/>

The problem is, that Chrome web browser processing such as document, remove "none" word by empty string. In that specyfic case transcoder works perfectly. We got pdf document with proper svg content. But when I use Microsoft Edge web browser, which processes svg content differently than Chrome, we got <text> element with transform="none" attribute. In this case, transcoder throws exception.

I have made some test that revealed some problem with transcoder. When I remove only "none" word (transform=""), everything is good. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org