Re: [xsl] How to render a pdf file in xsl.

Subject: Re: [xsl] How to render a pdf file in xsl.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 26 Apr 2005 10:06:23 +0100
  I got a pdf file already created and would be able to render it with the following tag in html:

  <embed src="c:\web\test.pdf" width="100%" height="100%">

Of course the above is very strange "HTML", Firstly there is no embed
element in html, and secondly those elements that do have a src
attribute take values that are URI eg file:///web/test.pdf not MSDOS
file paths.


  Is it possible to render this file in xsl?


It isn't clear what you mean by this question.

If you are generating HTML with XSLT then nothing is actually rendered
by the XSLT engine, so you just need to generate whatever HTML works.

If you are generating XSL Formating objects then you can create a link
to a pdf file using fo:basic-link or  or you can include a graphic with
fo:external-graphic, although you would need to check with your FO
system which graphic formats it supports (it may well not support pdf as
a graphic format)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

Current Thread