MailBee.NET Objects 7.2

HtmlToPdf Class

Provides methods and properties for HTML to PDF conversion.

For a list of all members of this type, see HtmlToPdf Members.

System.Object
   MailBee.Pdf.HtmlToPdf

public class HtmlToPdf

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This class is capable of converting table-based HTML/XHTML documents (like invoices and reports) or plain-text into PDF format. For HTML, only the most common CSS styles are supported. The component, however, provides OnConvertXmlNodeToPdf delegate which allows you to fine-tune the conversion process by adjusting colors, alignment, fonts, or with direct emitting PDF content.

Prior to creating instances of this class, the correct license key must be set. See MailBee.Global.LicenseKey property for details.

Note   This class uses iTextSharp and HtmlAgilityPack open source libraries to make HTML be XHTML compliant and build actual PDF content. If you're using HtmlToPdf class, you'll also need to copy the corresponding .DLLs with your application. By default, iTextSharp and HtmlAgilityPack .DLLs reside at the same location where MailBee.NET.dll itself.

Example

See HtmlToPdf topic for examples.

Requirements

Namespace: MailBee.Pdf

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

HtmlToPdf Members | MailBee.Pdf Namespace