You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/11/09 15:28:22 UTC

DO NOT REPLY [Bug 4766] New: - SVG line thickness wrong in PDF

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4766>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4766

SVG line thickness wrong in PDF

           Summary: SVG line thickness wrong in PDF
           Product: Fop
           Version: 0.15
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: pdf renderer
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: spam_from_apache_bugzilla@chezphil.org


SVG in an instream-foreign-object -> PDF.  I've got a number of
lines that ought to be the same thickness; they have different
stroke-widths, but they're contained in scale() transforms that ought
to cancel that out.  When FOP shows them on the screen using -awt they
do come out the same size as expected, but when it creates PDF they
are different.

FOP 0.20.2-RC.

Example:

?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="25mm" margin-left="25mm"
                           margin-bottom="20mm" margin-top="15mm"
                           page-height="297mm" page-width="210mm"
                           master-name="a4">
      <fo:region-before extent="10mm"/>
      <fo:region-after extent="10mm"/>
      <fo:region-body margin-bottom="15mm" margin-top="15mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-name="a4">
    <fo:flow flow-name="xsl-region-body">

      <fo:block>
        <fo:instream-foreign-object>

          <svg:svg xmlns:svg="http://www.w3.org/2000/svg"
                   width="5cm" height="5cm" viewBox="0 0 1000 1000">


            <svg:line stroke-width="60" stroke="#000000"
                      x1="300" y1="100" x2="1200" y2="100"/>

            <svg:g transform="scale(1)">
              <svg:line stroke-width="60" stroke="#000000"
                        x1="300" y1="200" x2="1200" y2="200"/>
            </svg:g>

            <svg:g transform="scale(10)">
              <svg:line stroke-width="6" stroke="#000000"
                        x1="30" y1="30" x2="120" y2="30"/>
            </svg:g>

            <svg:g transform="scale(100)">
              <svg:line stroke-width="0.6" stroke="#000000"
                        x1="3" y1="4" x2="12" y2="4"/>
            </svg:g>

            <svg:g transform="scale(1000)">
              <svg:line stroke-width="0.06" stroke="#000000"
                        x1="0.3" y1="0.5" x2="1.2" y2="0.5"/>
            </svg:g>

          </svg:svg>

        </fo:instream-foreign-object>
      </fo:block>

    </fo:flow>
  </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org