eMedia Filer (Optika)

The eMedia Filer batch output format creates single-page TIFF images and an ASCII input file that can be imported into Optikas eMedia Filer. Upon processing of a batch, a directory with the same name as the batch is created in the output path specified in the 'Output' tab of the Capture Software application setup dialog. The input file is also created and placed in the output path (see below for a full description of the input file). Next, directories for each document in the batch are created and placed in the batch directory. These directories are named according to the Capture Software document number. The TIFF images are placed in the document directories and are numbered sequentially across the documents, starting at 0.  All document directory and image names are zero filled to 8 characters. 

For example, let BATCH003 have 2 documents and an output path defined as 'c:\batches'. Let document 1 have two images and document 2 have three images. At process time, the directory 'Batch003' will be created and placed in 'c:\batches'.  In 'Batch003', two directories, '00000001' and '00000002', will be created.  The images '00000000.tif' and '00000001.tif' will be placed in directory '00000001'; images  '00000002.tif', '00000003.tif' and '00000004.tif' will be placed in '00000002'.  Therefore, BATCH003, with 2 documents (1 and 2), will, at process time, produce the following directory/file structure:

	c:\batches\Batch003\00000001\00000000.tif
		       		 ...\00000001.tif	
			...\00000002\00000002.tif
				 ...\00000003.tif
				 ...\00000004.tif

The input file is created at process time and contains the path name of every image in the batch as well as any document level index information. Each line of the input file represents one TIFF image.  The first field of each line is a TIFF images full path name and is always followed by the '|' character. The rest of the line is used to record the values of any index fields that were defined for the document that the particular image is part of.  A user definable field delimiter separates the index fields. The delimiter can be changed on the eMedia Filer (Optika) Setup dialog. To access this dialog, open the 'Application Setup' dialog, select the 'Output' tab and click on the 'Setup' button. The delimiter must be defined and can only be a single character.  The default delimiter is '|'.  Any index field left blank will result in two delimiters being printed right next to each other. The final index field is not followed by a delimiter. Each line is terminated with a carriage return/new line character.

The input file for the above example would be placed in 'c:\batches'. Assuming that each document had two index fields (first name, middle initial and number) and that the field delimiter was set to '~', the input file would have the following contents:

c:\batches\Batch003\00000001\00000000.tif|Jack~A~123
c:\batches\Batch003\00000001\00000001.tif|Jill~B~222
c:\batches\Batch003\00000002\00000002.tif|Bill~G~334
c:\batches\Batch003\00000002\00000003.tif|Mike~Z~456
c:\batches\Batch003\00000002\00000004.tif|John~I~890

The name of the input file can be either the current batch name or user defined.  To select one or the other, go to the eMedia Filer (Optika) Setup dialog.  The default option is to name the input file after the batch. If the input files name is user defined, the name can contain any character but it must include either one '*' or at least one '?' and be less than or equal to 8 characters in length. The '*' and '?' are treated as wildcard characters and are replaced by digits when the actual file is created. When characters other than the '*' or '?' are used in the name, THEY MUST PROCEED ALL WILDCARDS. The digits that replace the wildcards increment across batches and thus allow for the unique naming of multiple input files.  

If a '*' is used as a wildcard, only one is allowed and the input file name will consist of any constant characters plus however many digits are required to fill the name to 8 characters.   If one or more '?' are used, the input file name will consist of any constant characters plus as many digits as there are '?'. When using more than one '?', they must be placed adjacent to each other. 

The input file extension is also user definable and must contain at least one, but no more than three, characters. To change the extension, go to the eMedia Filer (Optika) Setup dialog.  The default extension is 'IDX'.  Any extension can be used, but if using the extension 'DAT' when the 'Input File name is batch name' option is selected, the default file name and extension of the Capture Software batch index file (a file produced by Capture Software for every batch) may conflict and must be changed. This can be done by going to the 'Application Setup' dialog, clicking on the 'Index' tab, selecting the 'Batch' tab and changing the extension given in the 'Path' window.

Here are some valid examples of a user defined input file name and the value its counter will have when the first input file is created. An extension of TXT is assumed:

*		00000001.TXT
INV*		INV00001.TXT
CHECK* 		CHECK001.TXT
?		1.TXT
???		001.TXT
INV??		INV01.TXT
INV????		INV0001.TXT

Here are some invalid examples of a user defined input name and the reason they are invalid:

*?		
Only one type of wild card can be used.

*INV		
Constant characters do not proceed the wildcard	character.

?CHECK		
Constant characters do not proceed the wildcard character.

I?N?V
Constant characters do not proceed all wildcard characters; use of '?' wildcard must be contiguous.

If the value of the counter in the input file name ever exceeds the maximum that can be expressed by the digits in the counter, the user will be provided the option to halt processing or to continue processing (thereby possibly overwriting an existing input file when the counter resets to 1).
