> ## 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.

# IExportImageSavingOptionsEx

> IExportImageSavingOptionsEx object in FlexiCapture scripts: the ShouldUseOriginalPdf flag keeps original PDF pages unchanged during image export.

## What it does

Describes additional image saving options that extend [IExportImageSavingOptions](/flexi-capture/appendix/scripts/iexportimagesavingoptions).

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

## Properties

| **Name**             | **Type** | **Access** | **Description**                                                                                                                                                                                                                                                                                                                                               |
| -------------------- | -------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ShouldUseOriginalPdf | bool     | Read/write | If the value is set to **true** and you export to PDF and no changes were made to the page image of the original PDF, all the properties from [IExportImageSavingOptions](/flexi-capture/appendix/scripts/iexportimagesavingoptions) will be ignored and the page from the original PDF file will be used instead. By default, the value is set to **false**. |

## Example

`IExportImageSavingOptionsEx` is not created directly. Create an [IExportImageSavingOptions](/flexi-capture/appendix/scripts/iexportimagesavingoptions) object with `FCTools.NewImageSavingOptions()`, cast it to `IExportImageSavingOptionsEx` to set `ShouldUseOriginalPdf`, and then pass the original object to `SaveAs`:

```csharp theme={null}
IExportImageSavingOptions options = FCTools.NewImageSavingOptions();
options.Format = "pdf-s";
options.ColorType = "FullColor";

IExportImageSavingOptionsEx exOptions = (IExportImageSavingOptionsEx)options;
exOptions.ShouldUseOriginalPdf = true;

Document.SaveAs(exportPath, options);
```

For complete export scripts, see [Sample scripts describing export](/flexi-capture/appendix/scripts/scripting-export-ex).
