HtmlToPdfConverter GeneratePdfFromFile Method (String, String, String)NReco.PdfGenerator Class Library Documentation
Generate PDF by specfied HTML content and prepend cover page (useful with GenerateToc option)

Namespace: NReco.PdfGenerator
Assembly: NReco.PdfGenerator (in NReco.PdfGenerator.dll) Version: 1.1.15.0 (1.1.15.0)
Syntax

public void GeneratePdfFromFile(
	string htmlFilePath,
	string coverHtml,
	string outputPdfFilePath
)

Parameters

htmlFilePath
Type: System String
path to HTML file or absolute URL
coverHtml
Type: System String
first page HTML (optional, can be null)
outputPdfFilePath
Type: System String
path to the output PDF file (if file already exists it will be removed before PDF generation)
See Also