W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2009

Re: XSL-FO to generate a PDF document

From: Tony Graham <Tony.Graham@MenteithConsulting.com>
Date: Wed, 15 Jul 2009 20:01:13 +0100
To: www-xsl-fo@w3.org
Message-ID: <878wip22km.fsf@menteith.com>
On Mon, Jul 13 2009 05:01:27 +0100, ubi.nunes@topazsolutions.co.nz wrote:
> I have to draw cross-line box that will start from the last row of a table
> and will cover all the white space until the end of the page.
>
> I'm using fo:instream-foreign-object and svg to create the cross-line box.
>
> My problem is that I don't know the size to the box till the xml elements
> populates the table and it will be different from xml to xml file that I
> process.
>
> Can anyone help with a code sample?

You would want to:

 - Keep the table and the following fo:block together within the page

 - Allow non-uniform scaling on the fo:instream-foreign-object

 - Set the content-height to 'scale-to-fit' (probably also for
   content-width).

Regards,


Tony Graham                         Tony.Graham@MenteithConsulting.com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2
Received on Wednesday, 15 July 2009 19:01:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 15 July 2009 19:01:39 GMT