Skip to content

Instantly share code, notes, and snippets.

@soshial
Last active June 1, 2018 12:26
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save soshial/a8758714db579c7941b3caa361d28121 to your computer and use it in GitHub Desktop.
ABBYY FineReader HotFolder template *.fta file
<?xml version="1.0"?>
<scenarios xmlns="http://www.abbyy.com/FineReader/Shell/TaskAutomation/0">
<scenario name="Моя задача111">
<operation operationType="UseBatch" mode="loadOptions" batchOrOptionsPath="" checkAfterExecute="false"
optionsMode="loadOptions">
<batchOptions xmlns="http://www.abbyy.com/FineReader/BatchOptions/0" hasLanguageDataBase="false">
<ocr options="OCRO_DetectTables,OCRO_DetectPictures" textType="STT_Normal" hilightLevel="SBEHL_Thorough"
patternName="(Default)" patternMode="UPM_DontUseUserPattern">
<language type="" languages="French,RussianOldSpelling"/>
</ocr>
<preprocess
options="IPO_DetectOrientation,IPO_DiscardGrayOnStore,IPO_DownsampleColorComponents,IPO_CompressColorComponents,IPO_RemoveColorMarks"/>
<documentSynthesis
options="DSO_DetectRunningTitles,DSO_DetectFootnotes,DSO_DetectTableOfContent,DSO_DetectLists"
fonts="Aharoni,Angsana New,AngsanaUPC,Arial,Arial Black,Arial Narrow,Arial Unicode MS,Batang,Book Antiqua,Bookman Old Style,Calibri,Cambria,Candara,Century Gothic,Century Schoolbook,Comic Sans MS,Consolas,Constantia,Corbel,Cordia New,CordiaUPC,Courier New,David,Dotum,Fixed Miriam Transparent,Franklin Gothic Book,Franklin Gothic Demi,Franklin Gothic Demi Cond,Franklin Gothic Heavy,Franklin Gothic Medium,Franklin Gothic Medium Cond,FrankRuehl,Garamond,Geneva,Georgia,Gulim,Gungsuh,Impact,Lucida Sans Unicode,Malgun Gothic,Microsoft Sans Serif,MingLiU,MS Gothic,MS Mincho,MS Reference Sans Serif,Palatino Linotype,Segoe UI,SimHei,SimSun,Sylfaen,Tahoma,Times New Roman,Trebuchet MS,Verdana"/>
<export options="">
<rtfOptions
options="RTFEOA_KeepRunningTitles,RTFEOA_UseAutoPageSizeAndMargins,RTFEOA_KeepPictures,RTFEOA_KeepLineNumbers,RTFEOA_RemoveSoftHyphens,RTFEOA_KeepFontAttributesInPlainText"
colourControlType="PCCT_Auto" pictureResolution="150" jpegQuality="50"
allowLossQuality="true" errorTextColor="32768" errorBackgroundColor="16777088"
hyperlinksColor="13395456" paperSize="[11909, 16834]" exportPageFormat="RTFEPF_Columns"
paperMargins="[-1, -1, -1, -1]" plainTextFont="DejaVu Sans"/>
<xlOptions options="XLEOA_KeepRunningTitles,XLEOA_KeepPictures" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"
fileFormat="BXLSF_DOUBLE_STREAM" pageFormat="XLEPF_FormattedText"/>
<pdfOptions
options="PDFEOA_WriteTaggedPdf,PDFEOA_EmbedFonts,PDFEOA_UseMRC,PDFEOA_UseAutoPageSizeAndMargins,PDFEOA_KeepRunningTitles,PDFEOA_KeepPictures"
colourControlType="PCCT_Auto" pictureResolution="300" jpegQuality="45"
allowLossQuality="true" exportMode="BPEM_ImageOnText" fontMode="BPFM_UseFontsFromIText"
hyperlinksColor="13395456" isEncryptionRequested="false" encryptionLevel="EL_Low"
userPassword="" ownerPassword="" permission="" paperSize="[11909, 16834]"
paperMargins="[-1, -1, -1, -1]" outlineCreationMode="EPOCM_NoOutline" profile="Balanced"/>
<htmlOptions options="HTMLEOA_KeepRunningTitles,HTMLEOA_KeepPictures,HTMLEOA_Allow_CSS"
encodeType="BTET_UTF8" codePageId="1251" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"
exportPageFormat="HTMLEPF_FormattedStream" partitionMode="HTMLEPM_None"/>
<pptOptions options="PPTEOA_KeepRunningTitles,PPTEOA_KeepPictures" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"/>
<textOptions options="TXTEOA_ExportParagraphAsOneLine,TXTEOA_KeepRunningTitles"
encodeType="BTET_UTF8" codePageId="1251"/>
<csvOptions options="" encodeType="BTET_UTF8" codePageId="1251" tabSeparator="Ow=="/>
<xmlOptions options=""/>
<pdfAOptions
options="PDFEOA_WriteTaggedPdf,PDFEOA_UseAutoPageSizeAndMargins,PDFEOA_KeepRunningTitles,PDFEOA_KeepPictures"
colourControlType="PCCT_Auto" pictureResolution="300" jpegQuality="45"
allowLossQuality="true" hyperlinksColor="13395456" paperMargins="[-1, -1, -1, -1]"
paperSize="[11909, 16834]" exportMode="BPEM_ImageOnText"
outlineCreationMode="EPOCM_NoOutline" profile="Balanced"/>
<ebookOptions fontFormat="Restricted" saveFontSize="false" embedFonts="false" options=""
epubVersion="2_0_1" colourControlType="PCCT_Auto" pictureResolution="150"
jpegQuality="50" allowLossQuality="true">
<title></title>
<keywords></keywords>
<annotation></annotation>
<authorsInfo/>
</ebookOptions>
<DjVuOptions mode="EDEM_ImageOnText" layerMode="EDMLM_Auto" textParticularity="ETCP_Lines"
colourControlType="PCCT_Auto" pictureResolution="-1" jpegQuality="80"
allowLossQuality="true"/>
<xpsOptions mode="EDEM_ImageOnText" pageSizeMode="XPSPSM_Auto" paperSize="[0, 0]"
colourControlType="PCCT_Auto" pictureResolution="-1" jpegQuality="80"
allowLossQuality="true"/>
</export>
<documentMetadata>
<authorsInfo/>
<title></title>
<subject></subject>
<keywords></keywords>
<producer></producer>
<creator></creator>
<creationDate>0:00:00.000 1.01.1601 UTC</creationDate>
</documentMetadata>
<userPatterns>
AAEJKABEAGUAZgBhAHUAbAB0ACkAewAAAEhDQUMHAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAVg0KDQpVc2VyIHBhdHRlcm5zIGZpbGUuIERvIG5vdCBlZGl0IQ0KQUJCWVkgRmluZVJlYWRlciBidWlsZCB2ZXJzaW9uOiAxMi4wLjEwMDEuMzEzLg0KAAAAAA==
</userPatterns>
<properties>AQA=</properties>
</batchOptions>
</operation>
<operation operationType="AddImage" Mode="execute" CheckResult="false">
<ta xmlns="http://www.abbyy.com/FineReader/TaskAutomation/0" forceAsPhoto="false">
<folder path="C:\input\" processSubfolders="true"/>
</ta>
</operation>
<operation operationType="Layout" Mode="analyze" BlockFileName="" CorrectResults="false"
AnalyzeParallel="true"/>
<operation operationType="Recognize" AskUserToRereadPages="false" DoModalReadBeforeSynthesis="false"
CheckResult="false">
<ta xmlns="http://www.abbyy.com/FineReader/TaskAutomation/0" inParallel="true" mode="0"/>
</operation>
<operation operationType="SaveDocument" Mode="execute">
<ExportOptions xmlns="http://www.abbyy.com/FineReader/BatchOptions/0" options="">
<rtfOptions
options="RTFEOA_KeepRunningTitles,RTFEOA_UseAutoPageSizeAndMargins,RTFEOA_KeepPictures,RTFEOA_KeepLineNumbers,RTFEOA_RemoveSoftHyphens,RTFEOA_KeepFontAttributesInPlainText"
colourControlType="PCCT_Auto" pictureResolution="150" jpegQuality="50" allowLossQuality="true"
errorTextColor="32768" errorBackgroundColor="16777088" hyperlinksColor="13395456"
paperSize="[11909, 16834]" exportPageFormat="RTFEPF_Columns" paperMargins="[-1, -1, -1, -1]"
plainTextFont="DejaVu Sans"/>
<xlOptions options="XLEOA_KeepRunningTitles,XLEOA_KeepPictures" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"
fileFormat="BXLSF_DOUBLE_STREAM" pageFormat="XLEPF_FormattedText"/>
<pdfOptions
options="PDFEOA_WriteTaggedPdf,PDFEOA_EmbedFonts,PDFEOA_UseMRC,PDFEOA_UseAutoPageSizeAndMargins,PDFEOA_KeepRunningTitles,PDFEOA_KeepPictures"
colourControlType="PCCT_Auto" pictureResolution="300" jpegQuality="45" allowLossQuality="true"
exportMode="BPEM_ImageOnText" fontMode="BPFM_UseFontsFromIText" hyperlinksColor="13395456"
isEncryptionRequested="false" encryptionLevel="EL_Low" userPassword="" ownerPassword=""
permission="" paperSize="[11909, 16834]" paperMargins="[-1, -1, -1, -1]"
outlineCreationMode="EPOCM_NoOutline" profile="Balanced"/>
<htmlOptions options="HTMLEOA_KeepRunningTitles,HTMLEOA_KeepPictures,HTMLEOA_Allow_CSS"
encodeType="BTET_UTF8" codePageId="1251" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"
exportPageFormat="HTMLEPF_FormattedStream" partitionMode="HTMLEPM_None"/>
<pptOptions options="PPTEOA_KeepRunningTitles,PPTEOA_KeepPictures" colourControlType="PCCT_Auto"
pictureResolution="150" jpegQuality="50" allowLossQuality="true"/>
<textOptions options="TXTEOA_ExportParagraphAsOneLine,TXTEOA_KeepRunningTitles" encodeType="BTET_UTF8"
codePageId="1251"/>
<csvOptions options="" encodeType="BTET_UTF8" codePageId="1251" tabSeparator="Ow=="/>
<xmlOptions options=""/>
<pdfAOptions
options="PDFEOA_WriteTaggedPdf,PDFEOA_UseAutoPageSizeAndMargins,PDFEOA_KeepRunningTitles,PDFEOA_KeepPictures"
colourControlType="PCCT_Auto" pictureResolution="300" jpegQuality="45" allowLossQuality="true"
hyperlinksColor="13395456" paperMargins="[-1, -1, -1, -1]" paperSize="[11909, 16834]"
exportMode="BPEM_ImageOnText" outlineCreationMode="EPOCM_NoOutline" profile="Balanced"/>
<ebookOptions fontFormat="Restricted" saveFontSize="false" embedFonts="false" options=""
epubVersion="2_0_1" colourControlType="PCCT_Auto" pictureResolution="150" jpegQuality="50"
allowLossQuality="true">
<title></title>
<keywords></keywords>
<annotation></annotation>
<authorsInfo/>
</ebookOptions>
<DjVuOptions mode="EDEM_ImageOnText" layerMode="EDMLM_Auto" textParticularity="ETCP_Lines"
colourControlType="PCCT_Auto" pictureResolution="-1" jpegQuality="80"
allowLossQuality="true"/>
<xpsOptions mode="EDEM_ImageOnText" pageSizeMode="XPSPSM_Auto" paperSize="[0, 0]"
colourControlType="PCCT_Auto" pictureResolution="-1" jpegQuality="80"
allowLossQuality="true"/>
</ExportOptions>
<ta xmlns="http://www.abbyy.com/FineReader/TaskAutomation/0" exportFormat="djvu"
fileExportMode="withImageFilesNames" filePath="C:\output\" fileName=".djvu"
needCreateTimeStampFolder="false" openAfterExport="false"/>
</operation>
</scenario>
</scenarios>
@soshial
Copy link
Author

soshial commented Jan 13, 2017

This XML *.fta file does not have any documentation, but it can be tinkered with. And I found some API that might match Hot Folder API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment