Hi folks,

since upgrading from FOP 0.20.5 to 0.95 the positioning of my SVG elements changed. In my FO I am basically doing this:

<fo:block-container position="absolute" left="0.5cm" top="20cm" height="1cm" width="0.5cm">
  <fo:block>
    <fo:instream-foreign-object>
      <svg:svg height="0.5cm" width="0.5cm">
        <svg:rect height="0.2pt" width="0.5cm" y="0cm" x="0cm"/>
      </svg:svg>
    </fo:instream-foreign-object>
  </fo:block>
</fo:block-container>

My understanding is that this should lead to a line positioned 20cm from the top of the page. However, the line appears 19.8cm from the top. Interestingly, if I change the "20cm" to "10cm" in the block-container's top attribute, then the line is positioned 10.2cm from the top. So the difference is 2mm in both cases. Going halfway between these cases, using "15cm" as value, the line is positioned exactly right.

Perhaps I should do my SVG positioning differently than with a block-container? Browsing through FOP's svg examples didn't provide any immediate insight...

The FO file is available upon request.

Many thanks in advance,

Ulrich


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to