Professional archiving software packages mostly work by pooling the content of a directory and add automatically the found files into its system. In order to give users later access to the files, the systems stores applicable additional information in a database.

As ELP is able to find any searchable data in the data stream, and stores it into variables, it is very easy to generate automatically fully freely designable index files. They have the same naming as the stored print / pdf / tiff file, but usually another extension. (HPS or XML)

The way to realize this is very basic and therefore also very powerful.

ELP does nearly not care about the file format and content of the index file. If you need XML, generate an XML file, if you need any other format, simply generate the prototype file and store it into the Workpath folder (Windows usually: c:\ProgramData\Welp, other systems: set by the -d command line argument).

Finally set in that prototype index file at the places where needed the names of the ELP collected variables.

The way ELP works is pretty simple:

  • You need to archive an outgoing data stream with OutArchiveDir, InArchiveDir will NOT work!
     
  • Process the print data stream as usually
  • If needed collect additional variables out of the stream (StoreNextWordToVariable)
  • Define in a rule the needed archiving keys
  • Make sure you added your prototype index file to the definition: key ArchiveHPSFile=FileName or if not in the standard path ArchiveHPSFile=Path\FileName
  • After the job is done, the index file is loaded, all variable placeholders are replaced by the variables found in the job and after this the file is stored using the same extension as the prototype file into the archive directory, the print job was stored to.

An example definition file DEMO.HPS can be found in the Workpath folder (e.g. c:\ProgramData\WELP). It can be edited with any ASCII Editor, like Notepad++.

[ArchivingAllInvoice]

; Search the following term in the data stream

Search_Windows_New=Invoice No.

; if found, store the outgoing data into this directory

OutArchiveDir=#ELP_FORMS_PATH#archive\InJobs

; use the prototype index demo.hps

ARCHIVEHPSFILE=demo.hps

; store the data only in Adobe PDF format.

PDF_MODE=6
ARCHIVEMODE=2

[Get Invoice Number]

Search_Windows_New=Invoice No.

; store the invoice number in this variable

StoreNextWordToIntVariable=#InvoiceNo#
ReadOnlySearchKeys=ON

[Get Customer Order Number]

Search_Windows_New=Your order number:
StoreNextWordToIntVariable=#OrderNo#
ReadOnlySearchKeys=ON

After the first printed job open the prototype demo.hps file and the archived one into your ASCII editor (Notepad++ can show both files parallel in the 2nd view), and see, how those found variables are used in the archived index file, located at the #ELP_FORMS_PATH#archive\InJobs directory. Also some other variables like UserName are used.

If the destination file name already exists, a counter _1, _2 etc is added to the file name. It is recommended to have always archive file names with a three character file extension. Like for example .PDF or .PRN.

 

Related articles: Archiving, Archive Tab, Running convert.exe process in user context, Example: MyPrintArchive - Collect4Printing