PDF .NET Library Documentation - PDF Technologies, Inc.
The function to convert HTML files to PDF

Namespace:  PDFTech
Assembly:  PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)

Syntax

C#
public void ImportHTML(
	string URL
)
Visual Basic (Declaration)
Public Sub ImportHTML ( _
	URL As String _
)
Visual C++
public:
void ImportHTML(
	String^ URL
)

Parameters

URL
Type: System..::.String
Location of the HTML file

Remarks

HTMLToPDF function is the easiest way to convert HTML files to PDF This function supports the following file extensions: "html","htm","mht","txt". You may also specify a URL on your intranet or a web URL.

Examples

The code sample below shows how easy it is to use this function to convert HTML to PDF using the HTMLToPDF function.
CopyC#
PDFDocument doc = new PDFDocument("c:\sample.pdf");                   
doc.HTMLToPDF("http://www.w3.org/");
doc.Save();

See Also