CHtmlConverterConvertToPdf Method (FileInfo, FileInfo, CConverterProperties) |
Converts HTML from a file to PDF and saves to another file
Namespace:
ComPDF.PDFGeneration
Assembly:
ComPDFGeneration (in ComPDFGeneration.dll) Version: 1.0.0+340720369ae98791af8dd72f985ee6534adad5e3
Syntaxpublic static CErrorCode ConvertToPdf(
FileInfo htmlFile,
FileInfo pdfFile,
CConverterProperties properties
)
Parameters
- htmlFile
- Type: System.IOFileInfo
FileInfo object representing the HTML source file - pdfFile
- Type: System.IOFileInfo
FileInfo object representing the destination PDF file - properties
- Type: ComPDF.PDFGenerationCConverterProperties
Conversion properties (optional)
Return Value
Type:
CErrorCodeError code indicating the result of the operation
See Also