xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36933] New: - linear-gradient renders incorrect in PDF
Date Wed, 05 Oct 2005 12:05:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36933

           Summary: linear-gradient renders incorrect in PDF
           Product: Batik
           Version: 1.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG Rasterizer
        AssignedTo: batik-dev@xml.apache.org
        ReportedBy: Oliver.Buschjost@hni.upb.de


I am using the following SVG-Graphic. When I render it to JPEG or PNG it renders
correctly. But when I render it into PDF the Gradient starts on a wrong
position. It is shifted to the right.

The demo code:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000">
<title>Technology Roadmap</title>
<desc>Technology Roadmap</desc>
<defs>
    <linearGradient id="lgr21" x1="0" y1="0" x2="0" y2="0">
    <stop offset="0" stop-color="#FFFFFF" />
    <stop offset="1" stop-color="#0768B2" />
  </linearGradient>
  <linearGradient id="lgr3" x1="0.436701" y1="0" x2="0.563281" y2="0">
    <stop offset="0" stop-color="#FFFFFF" />
    <stop offset="1" stop-color="#0768B2" />
  </linearGradient>
  <linearGradient id="lgr18" x1="0.088606" y1="0" x2="0.310121" y2="0">
    <stop offset="0" stop-color="#FFFFFF" />
    <stop offset="1" stop-color="#0768B2" />
  </linearGradient>
  <linearGradient id="lgr10" x1="0.246831" y1="0" x2="0.373411" y2="0">
    <stop offset="0" stop-color="#FFFFFF" />
    <stop offset="1" stop-color="#0768B2" />
  </linearGradient>
</defs>
  <rect style="fill:#C7E6FD;" id="tbox1" x="0" y="160" width="100" height="65" />
  <text x="97" y="174" style="fill:black; font-family:verdana; font-size:11px;"
writing-mode="rl">Text 1</text>
<text x="97" y="189" style="fill:black; font-family:verdana; font-size:11px;"
writing-mode="rl">Text 2</text>
<text x="97" y="204" style="fill:black; font-family:verdana; font-size:11px;"
writing-mode="rl">Text 3</text>
<text x="97" y="219" style="fill:black; font-family:verdana; font-size:11px;"
writing-mode="rl">Text 4</text>

  <text x="115" y="10" style="fill:#000000; font-family:verdana;
font-size:11px;" writing-mode="tb" glyph-orientation-vertical="270"
unicode-bidi="bidi-override" direction="rtl">Text 1</text>
<rect x="105" y="164" id="e21" width="20" height="12" style="fill:#0768B2;
fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000" />
<rect x="105" y="179" id="e3" width="20" height="12" style="fill:#FFFFFF;
fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000" />
<rect x="105" y="194" id="e18" width="20" height="12" style="fill:#FFFFFF;
fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000" />
<rect x="105" y="209" id="e10" width="20" height="12" style="fill:#FFFFFF;
fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000" />

  <rect x="130" y="164" id="t21" width="790" height="12"
style="fill:url(#lgr21);fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000"
/>
<rect x="130" y="179" id="t3" width="790" height="12"
style="fill:url(#lgr3);fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000"
/>
<rect x="130" y="194" id="t18" width="790" height="12"
style="fill:url(#lgr18);fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000"
/>
<rect x="130" y="209" id="t10" width="790" height="12"
style="fill:url(#lgr10);fill-opacity:1.0000000;stroke:#0768B2;stroke-opacity:1.0000000"
/>

  <text x="140" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2005</text> <rect style="fill:#FFFFFF" id="wh0" x="150" y="164"
width="2" height="65" />
<text x="215" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2006</text> <rect style="fill:#FFFFFF" id="wh1" x="225" y="164"
width="2" height="65" />
<text x="290" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2007</text> <rect style="fill:#FFFFFF" id="wh2" x="300" y="164"
width="2" height="65" />
<text x="365" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2008</text> <rect style="fill:#FFFFFF" id="wh3" x="375" y="164"
width="2" height="65" />
<text x="440" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2009</text> <rect style="fill:#FFFFFF" id="wh4" x="450" y="164"
width="2" height="65" />
<text x="515" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2010</text> <rect style="fill:#FFFFFF" id="wh5" x="525" y="164"
width="2" height="65" />
<text x="590" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2011</text> <rect style="fill:#FFFFFF" id="wh6" x="600" y="164"
width="2" height="65" />
<text x="665" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2012</text> <rect style="fill:#FFFFFF" id="wh7" x="675" y="164"
width="2" height="65" />
<text x="740" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2013</text> <rect style="fill:#FFFFFF" id="wh8" x="750" y="164"
width="2" height="65" />
<text x="815" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2014</text> <rect style="fill:#FFFFFF" id="wh9" x="825" y="164"
width="2" height="65" />
<text x="890" y="158" style="fill:#000000; font-family:verdana;
font-size:8px;">2015</text> <rect style="fill:#FFFFFF" id="wh10" x="900" y="164"
width="2" height="65" />

  <text x="565" y="10" style="fill:#000000; font-family:verdana;
font-size:11px;" writing-mode="tb" glyph-orientation-vertical="270"
unicode-bidi="bidi-override" direction="rtl">Text 4</text>
<text x="365" y="10" style="fill:#000000; font-family:verdana; font-size:11px;"
writing-mode="tb" glyph-orientation-vertical="270" unicode-bidi="bidi-override"
direction="rtl">Text 2</text>
<text x="415" y="10" style="fill:#000000; font-family:verdana; font-size:11px;"
writing-mode="tb" glyph-orientation-vertical="270" unicode-bidi="bidi-override"
direction="rtl">Text 3</text>

  <rect style="fill:#FFCCCC" id="wh1" x="561" y="162" width="10" height="65" />
<rect style="fill:#FFCCCC" id="wh2" x="361" y="162" width="10" height="65" />
<rect style="fill:#FFCCCC" id="wh3" x="411" y="162" width="10" height="65" />

  <circle cx="565" cy="170" r="5" fill="#DDE2CD" stroke="#000000" />
<circle cx="565" cy="185" r="5" fill="#DDE2CD" stroke="#000000" />
<circle cx="365" cy="200" r="5" fill="#DDE2CD" stroke="#000000" />
<circle cx="415" cy="215" r="5" fill="#DDE2CD" stroke="#000000" />

</svg>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message