Click or drag to resize

CHtmlConverterRenderAndConvertToPdf Method (FileInfo, FileInfo, FileInfo, CConverterProperties)

Renders HTML template with JSON data from files and converts the result to PDF

Namespace:  ComPDF.PDFGeneration
Assembly:  ComPDFGeneration (in ComPDFGeneration.dll) Version: 1.0.0+340720369ae98791af8dd72f985ee6534adad5e3
Syntax
C#
public static CErrorCode RenderAndConvertToPdf(
	FileInfo htmlFile,
	FileInfo jsonFile,
	FileInfo pdfFile,
	CConverterProperties properties
)

Parameters

htmlFile
Type: System.IOFileInfo
FileInfo object representing the HTML template file
jsonFile
Type: System.IOFileInfo
FileInfo object representing the JSON data file
pdfFile
Type: System.IOFileInfo
FileInfo object representing the destination PDF file
properties
Type: ComPDF.PDFGenerationCConverterProperties
Conversion properties (optional)

Return Value

Type: CErrorCode
Error code indicating the result of the operation
See Also