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.


Reply via email to