AW: how to transform my width in cm. to pdf?

thanks for the reply David.

hmmmm...
I am again trying another way for explaing te same problem to u.

well, I can use cms in my xsl and it gets transformed as well.
but see, I have an input document where I got a standard table layout
with standard measurements. my generated pdfs (after printing out
this file) is not matching with the given layout. I measured the
given layout in cm and given the same measurements in my input html
file for transforming to pdf. But the pdf takes somehow different
measurements. I could only crosscheck whether my cm has been taken
correctly with the intermediate FO content, where I see the table
width is same as the given in cm (like <fo:table width="14.4cm"
height="10.8cm">)

hmm I don't know all the measurement related problems with pdf!
and When I look at my xsl I can;t see something wrong done as well.

This layout needs the given measurements as its a very important
document. this layout is related to driving license.

perhaps u could give me some tips like the situation which make such things
happen.

thanks David
sudha







-----Ursprüngliche Nachricht-----
Von: David Carlisle [mailto:davidc@nag.co.uk]
Gesendet: Tuesday, February 17, 2004 12:40 PM
An: sudha.raver-veettil@einsurance.de
Cc: www-xsl-fo@w3.org
Betreff: Re: how to transform my width in cm. to pdf?




  What is the standard measurement unit used in pdf after the
transformation?


pdf doesn't really have units at all, it always works (like postscript)
to a local coordinate system that may be scaled/rotated at will, but
defaults to points (or at least big points: 1/72 in rather than 1/72.27 in)

However this isn't your problem as the FO spec clearly allows you to use
cm as a unit, and it is the job of the FO system to produce some
suitable PDF to represent that.

You did not give any description of what was wrong with your
measurements. A common problem with measurements in pdf files is that
people print from acrobat while leaving its checkbox option to enlarge
or shrink the page to fit the paper checked. This of course will change
any lengths (and font sizes).

However it wasn't clear from your description if the whole table was
uniformly the wrong size (which is probably an acrobat scaling problem
as above) or if some parts of the table  had unexpected sizes, in which
case you probably left some FO objects with default or "auto" sizing
but it's hard to say...

David

--
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Tuesday, 17 February 2004 07:05:22 UTC