PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Set conversion options with CEmailOptions. A new instance holds the default values.
CEmailOptions options = new CEmailOptions();
// Show Bcc recipients in addition to the default options
options.Flags |= CEmailFlags.EMAIL_INCLUDE_BCC;
// Maximum input email size
options.MaxInputBytes = 20UL * 1024 * 1024;
using (CEmailResult result = CEmailConverter.ConvertToPdf("/mail.eml", "/mail.pdf", CEmailFormat.EMAIL_FORMAT_AUTO, options))
{
}Option (CEmailFlags) | Default | Description |
|---|---|---|
EMAIL_INCLUDE_HEADERS | On | Show the sender, recipients, Cc, date, subject and other headers at the top |
EMAIL_INCLUDE_ATTACHMENT_LIST | On | Show the attachment list after the body |
EMAIL_EXPORT_ATTACHMENTS | On | Write attachments to the attachments/ directory during ExportHtml, with download links in the HTML attachment list |
EMAIL_INLINE_RESOURCES | Off | Embed body resources such as images as data URIs where possible |
EMAIL_RECOVER_EML | Off | Enable bounded EML recovery, for example a missing closing multipart boundary. Recovered results are not guaranteed to be complete |
EMAIL_INCLUDE_BCC | Off | Show Bcc recipients |
| Property | Default | Description |
|---|---|---|
MaxInputBytes | 100 MiB | Maximum input email size. 0 means a limit of 0, not unlimited |
MaxDecodedBytes | 256 MiB | Maximum total decoded data size |
MaxHtmlBytes | 64 MiB | Maximum output HTML size |
IsCancelled | null | Cancel callback; return true to cancel. It is only checked between phases and between I/O blocks, cannot interrupt a single parse or layout, and is not a hard timeout. An exception thrown by the callback is treated as a cancellation |