SVG Graphics in FOP

2013-09-05 Thread Martin Edge
Hi Guys, Any idea why when I'm using SVG to draw, it seems to have a whacky concept of units if I use anything _other_ than no units at all? I used a height of 55mm for instance and it seemed to take up several pages, and my x/y co-ordinates were not consistent between lines and rectangles

Re: SVG Graphics in FOP

2013-09-05 Thread Pascal Sancho
Hi, a good practice is to use the (viewBox, height, width) attribute set on svg element; you can leave all your size values without unit (defaulting to px or pt, I don't remember). ... And explicitly add your preferred unit on both svg/@width and svg/@height. Another option is to use FO

Re: SVG Graphics in FOP

2013-09-05 Thread Martin Edge
Hey Pascal - Ill give that a go, (the instream sizing might help), trying to steer clear of pixels because I believe that it varies based on FOPs DPI setting and therefore would have mixed results on differing installations Thanks! Martin On 05/09/2013, at 7:04 PM, Pascal Sancho

Re: SVG Graphics in FOP

2013-09-05 Thread Pascal Sancho
Yes, px is media dependant, so its usage is not recommended. 2013/9/5 Martin Edge martin.e...@intellimail.com.au: Hey Pascal - Ill give that a go, (the instream sizing might help), trying to steer clear of pixels because I believe that it varies based on FOPs DPI setting and therefore

RE: html content in xml input file.

2013-09-05 Thread Simon Steiner
Hi, You should put formatting in the xml file. So xml should look like Return_Address namexyz/name street101 avc/street /Return_Address Then apply fo formatting in xsl fo:block fo:inline font-size=16px fo:inline font-weight=bold