Hi
Can someone give me some general "where to start looking" advice please.
I AM : a dot net developer, good knowledge of xml / xsl transformation into
html.
I WANT : To produce PDF docs from xml feeds. Large numbers of files and some
very large.
Questions: I have heard of XSL-FO but know little about it. I have no idea
how to convert from XSL-FO to PDF. Are there microsoft / .net / even script
ways to do this easily? Do i need a component? Any recommendations (open
source freeware preferable but good recommendations mean more than the money)
Please help .. even if where to start looking / reading about this topic..
Joe Fawcett - 10 Jul 2008 08:48 GMT
> Hi
>
[quoted text clipped - 16 lines]
>
> Please help .. even if where to start looking / reading about this topic..
I tried using XSL-FO a few years ago and couldn't find a good renderer that
would cope with complex documents. I think things have moved on somewhat and
hopefully in a couple of years the new XSL-FO standard will be implemented
in a commercial component.
I have heard of RenderX but have no first hand knowledge of them.

Signature
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
Martin Honnen - 10 Jul 2008 12:44 GMT
> I WANT : To produce PDF docs from xml feeds. Large numbers of files and some
> very large.
>
> Questions: I have heard of XSL-FO but know little about it. I have no idea
> how to convert from XSL-FO to PDF.
The usual way is to write an XSLT stylesheet that transforms your XML to
XSL-FO, then you can use a FOP processor to transform the XSL-FO to PDF.
One FOP processor is Apache FOP: http://xmlgraphics.apache.org/fop/

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Peter Flynn - 13 Jul 2008 21:43 GMT
> Hi
>
[quoted text clipped - 12 lines]
>
> Please help .. even if where to start looking / reading about this topic..
An alternative is to use XSLT to transform to LaTeX, and then process to
PDF. This has the benefit of using LaTeX's built-in foreknowledge of
what documents are, and its large collection of formatting packages,
which avoids you having to reinvent several dozen wheels, and you can
modify your XSLT-->HTML code to output the LaTeX code. LaTeX is
available in both free and commercial implementations, and runs on
almost anything.
Contact me if you need more details.
///Peter
jmsides - 14 Jul 2008 19:55 GMT
hope this helps...
using System.IO;
using System.Xml.Xsl;
using System.Xml;
using xmlpdf; //http://www.xmlpdf.com/index.html
namespace xml_to_pdf_example
{
class Program
{
static void Main(string[] args)
{
XmlDocument request;
string stylesheet = "fax.xsl";
string pdfFile = "yourpdf.pdf";
XslTransform xsl = new XslTransform();
xsl.Load(stylesheet);
MemoryStream pdfXml = new MemoryStream();
xsl.Transform(request.CreateNavigator(), null, pdfXml, null);
xmlpdf.licensing.Generator.LicenseFileLocation = "xmlpdf.lic";
PDFDocument pdfDoc = new PDFDocument();
MemoryStream pdf = new MemoryStream();
pdfDoc.generate(pdfXml, pdf);
FileStream fs = new FileStream(pdfFile, FileMode.OpenOrCreate,
FileAccess.Write, FileShare.None);
pdf.WriteTo(fs);
pdf.Flush();
pdf.Close();
fs.Close();
}
}
}
> Hi
>
[quoted text clipped - 12 lines]
>
> Please help .. even if where to start looking / reading about this topic..