> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IExportImageSavingOptions

> IExportImageSavingOptions object in FlexiCapture scripts: set image export format, color scheme, compression, resolution, redaction, and PDF/A options.

## What it does

Describes image saving options.

<Note>
  This object is not available on the Web Verification Station for checking rules locally.
</Note>

## Methods

<table width="100%"><thead><tr><th style={{textAlign: 'left'}}><p><strong>Definition</strong></p></th><th style={{textAlign: 'left'}}><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>Add( value : Object, \[optional] position : int )</p></td><td><p>Places the value element in the text at certain position. If no position is specified, the element is placed at the end of the text.</p><p><strong>Note: </strong> The <strong>value</strong> parameter may be a character, a string, an <a href="/flexi-capture/appendix/scripts/icharacterparams">ICharacterParams</a> object, or an <a href="/flexi-capture/appendix/scripts/icharactersparams">ICharactersParams</a> object. Thus, you can copy character or text from other fields, preserving the markup and highlighting. If the regions of the characters you attempt to copy do not fit within the region of the new field, they will not be copied.</p></td></tr><tr><td><p>SetPdfDocumentInfo( type: <a href="/flexi-capture/t-pdf-document-info-type">TPdfDocumentInfoType</a>, value: string )</p></td><td><p>The metadata of the PDF file.</p></td></tr></tbody></table>

## Properties

<table width="100%"><thead><tr><th style={{textAlign: 'left'}}><p><strong>Name</strong></p></th><th style={{textAlign: 'left'}}><p><strong>Type</strong></p></th><th style={{textAlign: 'left'}}><p><strong>Access</strong></p></th><th style={{textAlign: 'left'}}><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>AddProperFileExt</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>If the value is set to <strong>true</strong>, the extension is set according to the image format during image saving. By default, the value is set to <strong>false</strong>.</p></td></tr><tr><td><p>ColorType</p></td><td><p>string</p></td><td><p>Read/write</p></td><td><p>Color scheme. Admissible values: "FullColor", "GrayScale", "BlackAndWhite". Strings are not sensitive to the letter case.</p></td></tr><tr><td><p>FieldsToRedact</p></td><td><p><a href="/flexi-capture/appendix/scripts/i-export-fields-to-redact">IExportFieldsToRedact</a></p></td><td><p>Read/write</p></td><td><p>The list of fields to be redacted in the resulting image.</p></td></tr><tr><td><p>Format</p></td><td><p>string</p></td><td><p>Read/write</p></td><td><p>Image saving format. Admissible expressions: "tif", "jpg", "bmp", "jpg2000", "pcx", "png", "pdf" plus "-s" (for PDF Searchable) and "-a" (for PDF/A) parameters. Strings are not sensitive to the letter case. Parameters begin with "-". They can be separated with spaces, tabs or no delimiters can be used. For example: "pdf -s", "pdf-a-s".</p></td></tr><tr><td><p>ImageCompressionType</p></td><td><p><a href="/flexi-capture/t-image-compression-type">TImageCompressionType</a></p></td><td><p>Read/write</p></td><td><p>Sets a compression method for the exported image. By default, a compression method is selected automatically based on the format and colors.</p><p><strong>Note: </strong> If an incompatible compression method is selected, the task will be placed in the Exceptions folder.</p></td></tr><tr><td><p>PdfAVersion</p></td><td><p><a href="/flexi-capture/t-pdf-a-version">TPdfAVersion</a></p></td><td><p>Read/write</p></td><td><p>Specifies the PDF/A version.</p></td></tr><tr><td><p>PdfTextSearchArea</p></td><td><p><a href="/flexi-capture/t-pdf-text-search-area-type">TPdfTextSearchAreaType</a></p></td><td><p>Read/write</p></td><td><p>Specifies where a text layer should be created for purposes of export to PDF-S.</p></td></tr><tr><td><p>Quality</p></td><td><p>int</p></td><td><p>Read/write</p></td><td><p>Image quality for JPEG-compression (in percentage terms).</p></td></tr><tr><td><p>RecognitionLanguages</p></td><td><p>string</p></td><td><p>Read/write</p></td><td><p>The list of languages that can be used for recognition of documents intended for export to searchable PDF. Consists of the <a href="/flexi-capture/appendix/scripts/internal-lang">internal names</a> of languages in English divided by semicolons without spaces. If the list is empty, the language of the Document Definition applied to the document is used.</p><p>Is effective for annex pages only, as for pages with matched sections, only recognized fields have a text layer. As such fields are recognized in the recognition stage (not in the export stage), specifying this property does not influence recognition results for these fields.</p></td></tr><tr><td><p>Resolution</p></td><td><p>int</p></td><td><p>Read/write</p></td><td><p>Image resolution (measured in DPI).</p></td></tr><tr><td><p>SaveAttachmentsToPdf</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies whether to save the attachment of the PDF file.</p></td></tr><tr><td><p>ShouldOverwrite</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies if the existing file can be overwritten.</p></td></tr><tr><td><p>UseMRC</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Enables compression using Mixed Raster Content (MRC) technology when exporting to PDF or PDF/A. MRC provides better compression for some images than the commonly used JPEG method, for example, for good quality images with high-contrast text against a uniform background. Use MRC to reduce the size of the resulting PDF file.</p><p><strong>Note: </strong> By default the flag is <strong>true</strong> when exporting to PDF and <strong>false</strong> when exporting to PDF/A.</p></td></tr></tbody></table>

<Info>
  For additional PDF export options, see [IExportImageSavingOptionsEx](/flexi-capture/appendix/scripts/iexportimagesavingoptionsex), which adds the `ShouldUseOriginalPdf` property for keeping original PDF pages unchanged during export.
</Info>
