previous messages :

From: listes <[EMAIL PROTECTED]>

First sorry for my poor english.
It seems that page-height="indefinite" is not yet implemented in fop 0.20.5 with PDF Rendering
Is there another solution to make page-height dynamic ?
I have an idea, but i don't know if it will be work.
I have created a xsl variable like this : <xsl:variable name="page.height">5cm</xsl:variable>
and my simple-page-master tag is : <fo:simple-page-master master-name="default-page" page-width="5.57cm" page-height="{$page.height}">

You can certainly set the page-height at XSLT stage.

Is possible to get the y coordinate (in cm or in) of the last block of my document ?

Not until after the document has been rendered, which I assume is no good to you? Why do you think you need to know this?


Chris


First, thanks for your anwser Chris, but it seems that i was not clear in my first message
I need to create with FOP a document which have a static width (5 cm for example) but with a dynamic height (dependant of the content lenght in the document).
how generate a document with a adaptative height of the contents of the document ?
I understood that i can set the page-height at XSLT stage, but at this stage it is impossible to know the length (in cm) of the PDF output.
My first idea was to set the page-height during document is rendered, but it seems impossible.
My last idea is to make one first document with an arbitrary page-height (rather important), check the real size (y position in cm of the last block of the document), and
make a new output with the real size in page-height (set during the second XSLT stage)
It is certainly longer but it allows me to wait for the new version of FOP which support the indefinite parameter in page-height during PDF rendering.


thanks again for anwsers ;-)

regards,  guillaume.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to