Well the main part of the SVG is whatever you want, I have seen pixels and mm used without measurement, the main width and height again can be pixels and also mm etc.
Where I use SVG I usually put it in a template call as follows
<svg:svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
width="{$width}mm"
height="{$height}mm"
viewBox="0 0 612.28299
147.42"
which means the width and height is in mm but the viewbox is in pixels.
Kindest regards
Theresa Forster
Senior Software Developer
[email protected]
www.inbrand.co.uk <http://www.inbrand.co.uk/>
Tel: 01483 266500
IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.
InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF
From: Eric Douglas [mailto:[email protected]]
Sent: 02 June 2011 15:45
To: [email protected]
Subject: RE: Measuring
That's exactly what I was looking for on block placement, thanks. What
about SVG?
My SVG code looks like this (doesn't mention UOM).
<fo:instream-foreign-object content-width="236.25" content-height="auto"
scaling="non-uniform"><svg:svg preserveAspectRatio="xMinYMin meet"
width="100%" height="100%" viewBox="0,0,556,84"><svg:path d=" M 0.00 0.00 L
0.30 0.00 ...
Can I assume that is pt? I'm assuming page size is 792 x 612 (or 612 x 792
landscape).
_____
From: Glenn Adams [mailto:[email protected]]
Sent: Thursday, June 02, 2011 10:36 AM
To: [email protected]
Subject: Re: Measuring
<length> in XSL-FO is as defined by CSS 2. A unit designator is required
unless the value is 0. The available unit designators are:
* em
* ex
* in
* cm
* mm
* pt
* pc
* px
The unit 'pt' is an absolute measurement equal to 1/72 inch. FOP
non-conformantly permits unit-less lengths not equal to zero, in which case
it is interpreted as 'px', which is device/implementation dependent.
If you want a precise, absolute measurement, use 'pt', 'mm', or another
absolute unit.
Glenn
On Thu, Jun 2, 2011 at 8:16 AM, Eric Douglas <[email protected]>
wrote:
How does Fop measure?
If I put a tag in my .fo for <fo:block-container position="absolute" left= .
Does it measure in pixels / points (are they the same thing?)?
Do I need to specifiy? left="10px" or just left="10"?
It appears to work the same with or without a unit of measure, assuming the
page measurement to be 72PPI, but I don't want to make an assumption and be
wrong later.
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
<<image001.png>>
