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();
}
}
}
"Robert" wrote:
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..