OutlookMessageToImageAndAttachment

Converts a *.msg or *.eml file to a page or pages in TIFF format.

Member of namespace

Convert

Syntax

bool OutlookMessageToImageAndAttachment ()

Parameters

None.

Returns

True if the file is successfully converted to a TIFF document.

False if the current page is not an Outlook Message or if there is a failure in the conversion.

If the number of input files/pages exceeds the maximum allowed or if there is a failure in the conversion, the batch is set to abort.

Level

Page level.

Details

If the current page is an Outlook Message, the file is converted to multiple TIFF files, one TIFF file for each page within the Message, based on the settings of the other Outlook actions that configure the conversion settings. A copy of the original MSG file without attachments is created and converted to TIFF as well.

Each new TIFF also has a new page created within the application environment which can be processed by subsequent rules. The original file name from which the page was extracted is stored in the ParentImage variable, for possible future reference within your application.

Each attachment or embedded image within the e-mail is removed from the e-mail and placed on disk. A new page entry will be created for each attachment that can be processed by rules.

If the configured output image format and compression only supports black and white, such as CCITT4, colored text is exported as black.

Example:
OutlookPrintQuality(200)
OutlookTiffCompression("CCITT4")
OutlookMessageToImageAndAttachment()