xsl-list
[Top] [All Lists]

Re: How to render a pdf file in xsl.

2005-04-26 02:06:23

  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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>