fop-users  

Problem with absolute positioning with block-container

Johannes Caspary
Fri, 05 Feb 2010 02:09:19 -0800

Dear list,

I was preparing an XSL template for formatting a letter that conforms the standard DIN 676. As the standard is very clear about the absolute position of e.g. the address information to display in the window of the envelope or the folding marks, I decided to use block-container absolute positioning for these items.

Thus, I tried to make up a very basic stylesheet that contains the folding marks at 105mm, 148,5mm and 210mm from top. Also, I included the window for the address which is positioned at 20mm from the left and 45mm from top.

The curious thing about the processed PDF document is, that the top positioning is about 3mm too far away from the top for the folding marks, while the window top is positioned just fine. Also it seems that the left positioning is not exact either, as there the distance to the left is 1mm to little for the window.

I have set the margins to 0mm and used the absolute-position="fixed" attribute.

You'll find a sample XML file, the XSL file and the PDF output file attached. I have no idea, what else I could do. Am I missing something? I really don't want to enter virtual proportions so that the letter will look good when printed out.

Thanks and regards,
Johannes Caspary


--
Johannes Caspary <johannes.casp...@cms.hu-berlin.de>
AGNES-Team
Humboldt-Universitaet zu Berlin, Computer- und Medienservice
Ziegelstraße 13b, 10117 Berlin
Tel: +49(30) 2093 70145, Fax: +49(30) 2093 2704
<?xml version="1.0"?>
<results>
	<result />
</results>

Attachment: out.pdf
Description: Adobe PDF document


Attachment: stylesheet.xsl
Description: XML document

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