CHtmlConverterConvertToPdf Method (String, Stream, CConverterProperties) |
Converts HTML content string to PDF and writes to the specified stream
Namespace:
ComPDF.PDFGeneration
Assembly:
ComPDFGeneration (in ComPDFGeneration.dll) Version: 1.0.0+340720369ae98791af8dd72f985ee6534adad5e3
Syntaxpublic static CErrorCode ConvertToPdf(
string htmlContent,
Stream pdfStream,
CConverterProperties properties
)
Parameters
- htmlContent
- Type: SystemString
HTML content to convert - pdfStream
- Type: System.IOStream
Stream to write the resulting PDF to - properties
- Type: ComPDF.PDFGenerationCConverterProperties
Conversion properties (optional)
Return Value
Type:
CErrorCodeError code indicating the result of the operation
See Also