HtmlToPdfConvert Method (Stream, String)
Writes an HTML or plain-text string into the file in PDF format.

Namespace: MailBee.Pdf
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public void Convert(
	Stream sourceStream,
	string pdfFile
)

Parameters

sourceStream
Type: System.IOStream
The input stream containing HTML or plain-text data.
pdfFile
Type: SystemString
The filename to write .pdf data into.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionsourceStream or pdfFile is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeStreamExceptionA stream error occurred.
MailBeeIOExceptionAn I/O error occurred.
Remarks
If SourceType is Html (default value), the input is considered HTML; if SourceType is Text the input is considered plain text; otherwise, XMLized XHTML.
Examples
See Also