HtmlToPdfConvertFile Method (String, Stream)
Writes the file with HTML or plain-text string into a stream in PDF format.

Namespace: MailBee.Pdf
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public void ConvertFile(
	string sourceFile,
	Stream outputStream
)

Parameters

sourceFile
Type: SystemString
The path to the file containing HTML or plain-text data.
outputStream
Type: System.IOStream
The output stream to write .pdf data into.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionsourceFile or outputStream 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