Pdf Duo .Net component
Convert the HTML to the PDF stream, reforming HTML's tags into PDF format structure.

Namespace: DuoDimension
Assembly: pdfduo-net (in pdfduo-net.dll) Version: 2.4.0.0 (2.4)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SavePDF(
	Stream PdfStream
)
Public Sub SavePDF ( _
	PdfStream As Stream _
)
public:
void SavePDF(
	Stream^ PdfStream
)

Parameters

PdfStream
Stream
The PDF stream.

Examples

CopyC#
string file_html = @"K:\hdoc.html";

try
{
    DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
    conv.OpenHTML(file_html);
    Stream sm = new MemoryStream();
    conv.SavePDF(sm);
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
CopyVB.NET
Dim file_html As String = "K:\hdoc.html"
Dim ms As New IO.MemoryStream()

Try
    Dim conv As New DuoDimension.HtmlToPdf()
    conv.OpenHTML(file_html)
    conv.SavePDF(ms)
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

See Also