PDF .NET Library Logo

How to convert an existing HTML page to PDF document.

The following code generates a PDF file from a given URL.

C# sample:

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

MyDocument.ImportHTML("http://www.samplesite.com");

MyDocument.Save();

Back to PDF Code Library