PDF .NET Library Logo

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