PDF .NET Library Logo
Home Products Code Library Online Demos Support Forum 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