Description
Assembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
Class for converting HTML to PDF files in your dynamic Web Site or large-scale Business Project or Desktop Utility.
The class includes easy-to-operate methods to convert HTML to PDF as a file or as a stream.
Namespace:
DuoDimensionAssembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
Syntax
| C# | Visual Basic |
public class HtmlToPdf
Public Class HtmlToPdf
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| HtmlToPdf()()() |
Initializes a new instance of the DuoDimension.HtmlToPDF class.
| |
| BasePath |
Base Path of the source file. It helps the converter locate the images which use relative path in HTML files.
Default values is file path or url address if file or url was specified. Base Path should be specified when HTML string/stream is converted.
| |
| CreateOutlines |
If true then HTML headers are converted to PDF bookmarks. The default value is true.
| |
| Footer |
This property is used to get and set the text in the Footer
| |
| Header |
This property is used to get and set the text in the Header
| |
| ImageInfo |
Set attributes concerned with images.
| |
| OpenHTML(Stream) |
Open the Stream object with HTML content before converting to the PDF, reforming HTML's tags into PDF format structure.
| |
| OpenHTML(String) |
Open the HTML file or HTML string with tags before converting to the PDF, reforming HTML's tags into PDF format structure.
| |
| OpenHTML(StringBuilder) |
Open the HTML string before converting to the PDF, reforming HTML's tags into PDF format structure.
| |
| OpenHTML(Uri) |
Open the HTML Page from a URL Address before converting to the PDF, reforming HTML's tags into PDF format structure.
| |
| PageInfo |
Set page attributes such as size, margins, orientation.
| |
| PdfDocumentInfo |
When you view a PDF, you can get information about it, such as the title, author, subject etc. Some of this information is set by the person who created the document.
| |
| SavePDF()()() |
Convert the HTML to the PDF byte array, reforming HTML's tags into PDF format structure.
| |
| SavePDF(Stream) |
Convert the HTML to the PDF stream, reforming HTML's tags into PDF format structure.
| |
| SavePDF(String) |
Convert the HTML to the PDF file, reforming HTML's tags into PDF format structure.
| |
| SetLicenseCode(String) |
If using PDFDuo .Net Full Version, put your License Code as a parameter.
Otherwise, if you are using Trial, you don't need include this method into your code.
(Free version doesn't have SetLicenseCode method).
| |
| ShowPDF(String) |
Launchs the specified PDF file after successful converting.
| |
| ShowPDF(array<Byte>[]()[], HttpResponse) |
Shows the PDF in the Browser Window without saving it on the disk.
| |
| SourceEncoding |
Represents a character encoding. It is used for transformation a set of Unicode characters into a sequence of bytes.
| |
| ToString()()() |
Convert the HTML to the PDF string, reforming HTML's tags into PDF format structure.
|
Inheritance Hierarchy
System..::.Object
DuoDimension..::.HtmlToPdf
DuoDimension..::.HtmlToPdf
See Also
DuoDimension Namespace