Export script in FlexiCapture 12 fails with error: Method not found: 'Void ABBYY.FlexiCapture.IExportImageSavingOptions.set_ShouldUseOriginalPdf(Boolean)'.

Symptoms

When using ShouldUseOriginalPdf method in a custom export script within FlexiCapture 12 versions 12.0.4.1016 and beyond, the following error occurs:

Error: [Processing error]: System.MissingMethodException: Method not found: 'Void ABBYY.FlexiCapture.IExportImageSavingOptions.set_ShouldUseOriginalPdf(Boolean)'.
at Main.Execute(IDocument Document, IProcessingCallback Processing)

Cause

In ABBYY FlexiCapture 12.0.4.1016 (Release 4 Update 3 Patch 3), the ShouldUseOriginalPdf scriptable property was migrated from the IExportImageSavingOptions interface to the IExportImageSavingOptionsEx interface.

Resolution

To maintain compatibility with the latest FlexiCapture releases, code referencing the ShouldUseOriginalPdf property must be updated as shown below:

IExportImageSavingOptions tempOpt = FCTools.NewImageSavingOptions();
IExportImageSavingOptionsEx exOptions = (IExportImageSavingOptionsEx)tempOpt;
exOptions.ShouldUseOriginalPdf = true;

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.