- From: Martin Røpcke <mr@xosoftware.dk>
- Date: Mon, 16 Feb 2004 11:29:55 +0100
- To: www-xsl-fo@w3.org
- Cc: David Carlisle <davidc@nag.co.uk>
David Carlisle wrote: > I would like to add a pdf as e.g. instream-foreign-object or > external-graphic, whichs support e.g. .svg and .jpg. Is this at all > possible either with the given commands or in any other way? That is, I > would like to add a .pdf e.g. as a footer to the .fo before I transform > the .fo to .pdf. > >The FO language alows this (it is completely neutral as to the allowed >external formats) but the exact list of supported formats depends on >your FO processor, you dodn't say which system you are using. > > > I use javax.xml.transform.* and org.apache.fop.*. This is how I include: <xsl:template name="preport"> <fo:block text-align="left"> <xsl:variable name="filename" select="java:SelectPDF.selectPdf('annual')"/> <fo:external-graphic content-width="auto" width="auto" src="{$filename}"/> </fo:block> </xsl:template> I have tried the same with: <fo:instream-foreign-object content-width="auto" width="auto" src="{$filename}"/> Hope for more guidance. Thanks -- Martin
Received on Monday, 16 February 2004 05:32:41 UTC