6.5

© 2007 ABBYY. All rights reserved.
46
Appendix
Supported image formats
Type Color
BMP Black–and–white, gray, color
PCX Black–and–white, gray
PNG Black–and–white, gray, color
JPEG Gray, color
TIFF Black–and–white – not compressed, CCITT3, CCITT4, Packbits;
gray – not compressed, Packbits, JPEG;
color – not compressed, JPEG
DCX Black–and–white, gray
PDF Files in PDF format
Structure description language
Custom batch type structure and custom document template structure are described in a special structure description language. The
structure description language has six components: annex component, page component, variant component, repetition component,
optional component, and document component.
The following components are used to describe the structure of a batch type:
variant component
repetition component
optional component
document component
The following components are used to describe the structure of a document template:
annex component
page component
variant component
repetition component
optional component
document component
Annex component
Use. The component is used to describe a sequence consisting of one page.
Syntax.
Annex([BarcodeCondition((False|True|"<Barcode value>"))])
Comments on syntax.
The component consists of:
1. Annex – the name of the component
2. BarcodeCondition – indicates that the program will look for barcode on the page. It is an optional sign
3. False|True – indicates that the page has (True) or has not (False) barcode
4. "<Barcode value>" – the specified barcode value. This value is optional.
Definition: A page sequence meets the above description if it consists of one page, the page is annex, it meets the barcode
presence/absence condition (if it is specified), and the barcode value is equal to the required value if it is specified).
Examples:
Annex() – the program will not look for barcode on the page.
Annex(BarcodeCondition(False)) – the page is an annex without barcode
Annex(BarcodeCondition(True)) – the page is an annex with barcode
Annex(BarcodeCondition("21")) – the page is an annex with the barcode that should have the value of 21.
Page component
Use. The component is used to describe a sequence consisting of one recognizable page corresponding to a given template.
Syntax. Page(“<Template name>”{, BlockCondition(“<Key field name>,” “<Key field value>”)})
Comments on syntax. The component consists of:
Page – the name of the component,
“<Template name>” – the name of the page template corresponding to the page,
BlockCondition – indicates that the program will check the key field values,