HtmlToPdfConvert Method (Uri, Stream)
Converts HTML, plain text or XML document denoted by the specified URI into the stream 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(
	Uri sourceUri,
	Stream outputStream
)

Parameters

sourceUri
Type: SystemUri
An Uri object with address of web page containing HTML or plain-text data.
outputStream
Type: System.IOStream
The output stream to write .pdf data into.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionsourceUri or outputStream is a null reference (Nothing in Visual Basic).
MailBeeStreamExceptionA stream error occurred.
MailBeeIOExceptionAn I/O error occurred.
MailBeeWebExceptionHTTP connection 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