Converting e-mail files to PDF

Some common e-mail file formats (MSG, EML, EMLX) are supported for conversion to PDF. Some PDF standards do not allow embedding files (like PDF/A-1) but other allows the embedding of PDF- (PDF/A-2) and also non-PDF-files (PDF/A-3) into another PDF file. To match these different targets, using pdfaPilot CLI it is possible to define variety of different settings for handling attach-­ments of e-mails. In general a PDF is created with --emailtopdf This will create a PDF containing all attachments, those who can be con-­verted as PDF (like Office files or images), all other in ther native format.

--emailtopdf <e-mail file> 

Settings for e-mail conversion

--emailtopdf 
  [--level=<level>] 
  [--attachments=<parameter>,<parameter>,...] 
  [--onerror=<parameter>] 
  [--embedsource] 
  [--noembed=<file type>,<file type>,...] 
  [--noconvert=<file type>,<file type>,...] 
  --template=<path to folder> 
  <e-mail file>  

--level

You can define the required PDF/A level (default is no PDF/A conversion).

Parameters

level

A3b, A3u, A3a, A2b, A2u, A2a, A1b, A1a or No (default: no)

--attachments

Depending on the defined parameter, attachments will not be embedded or embedded in their original file format, converted to PDF or as pages. The parameters can be combined comma separated.  

Parameters

IGNORE

Attachments will be ignored and not converted or attached

ORIGINAL

Attachments will be embedded in their original file format

PDF

Attachments will be converted to PDF (if possible) (Default)

PAGES

Attachments will be converted (if possible) and attached as additional pages to the e-mail content

--onerror

If an attachment can not be converted to PDF, this setting allows the defi-nition of handling such e-mail files.

Parameters

ABORT

Aborts processing if an attachment can not be converted to PDF

SKIP

Attachment will be skipped and reported on the CLI.

FALLBACK

Attachment will be embedded in original file format, if it can not be converted to PDF. If a PDF/A-level has been selected, PDF/A-3 with the respective sublevel will be used. (Default)

--embedsource

The e-mail-file itself will also be embedded in the resulting PDF.

--noembed

RegEx expression for file type extensions for attachments, which will not be embedded or converted to PDF although is attached to the e-mail file. Samples for valid RegEx (RegEx is case-sensitive, "(?i)" will make it case-insensitive. --noembed=".*.vir" matches extension "vir" in small letters --noembed=".*.(VIR|EXE)" matches the listed extensions in big letters --noembed="(?i).*.VIR" matches all possible variations of "VIR"

--noconvert

RegEx expression for file type extensions for attachments, which will not be embedded or converted to PDF although is attached to the e-mail file. See --noembed for RegEx samples.

--template

It is possible to create own HTML-Template and Cascading Style Sheets (CSS) to adjust the visual appearance of the created PDF.

0 Comments

Send Your Comment

E-Mail me when someone replies to this comment