PDF .NET Library  .NET PDF Component Library. PDF creator, PDF maker.
Home Products Code Library Online Demos Support Buy About Us  
Code Library

How to convert XML to PDF

The code below creates a PDF document using an XML and XSL file.

c# sample:

PDFDocument MyDocument = new PDFDocument("XMLSample.pdf");

string path = Environment.CurrentDirectory;

MyDocument.ImportXml("sample.xml", "sample.xsl", path);

MyDocument.Save();

Back to PDF Code Library