PDF File Sorting

In some cases it is essential that it is possible to sort generated PDF documents by given criteria’s. For example you use Aloaha in non interactive server mode and would like to make sure that your generated invoices are sorted by customer and invoice number.

Aloaha’s inbuilt script engine is able to evaluate the content of the first PDF page and generate out of these results a file path for the PDF documents. 


Configure automatic PDF File sorting

To enable and configure the automatic PDF File sorting please click on the Aloaha PDF Suite Tray icon and disable the interactive feature.

Once you disabled interactive you will see with a right click on the tray icon a new submenu "Advance Settings".

Please choose configure "Configure Savings Filter". In the upcoming dialog you can configure three values.

Root Path
The Root Path defines the root of the folder where the file structure should be created.
In the registry that value is saved in HKEY_CURRENT_USER\Software\Aloaha\pdf\automailer\outputpath

This value can be overridden with the embedded command DefaultPath. For example DefaultPath: d:\pdf\

Filename Filter
Here you need to configure a regular expression to define the name of the PDF Document. You could for example configure  Invoice:(.*)
The value is saved in HKEY_CURRENT_USER\Software\Aloaha\pdf\automailer\outputpath\pdffilename

Path Filter
The Path filter defines the subpath of the root path to be used to save the document. It can be left empty. In case you would like to save your PDF Documents for example in a path containing the customer number please configure a regular expression like: Customer Number:(.*)
The value is saved in HKEY_CURRENT_USER\Software\Aloaha\pdf\automailer\savefilter0
Please note that values savefilter1-savefilter9 can be configured manual in the registry in case one Path Filter is not enough. For example you could configure HKEY_CURRENT_USER\Software\Aloaha\pdf\automailer\savefilter1 as Date:(.*) to grep additional the date.


Global Templates

In Enterprise environments it might be important to pre-set the filter globally. In that case just define them in HKLM instead of HKCU. Aloaha will automatically fall back to HKLM if no HKCU values are defined.

Please read also about our Registry2Ini mapping feature. In case you need to roam your settings or need to be able to configure them centrally on a server it will be exactly what you need.


Regular Expressions

If we need to assist you to create a Regular Expression just send a sample PDF Document with a short explanation to aloaha@wrocklage.de.


Aloaha Automation White Paper.pdf (645,81 KB)


Aloaha Software / Products / Aloaha PDF Suite Server / File Sorting
Aloaha PDF Suite Server Version
€ 490,00 zzgl. MwSt.
$ 759,69 zzgl. MwSt.
Bestellmenge:

Aloaha PDF Suite Demo Download

Aloaha Automation White Paper

File Sorting Dialog


create PDF Software

File Sorting

Any questions?
Aloaha Software - File Sorting, file, sorting, sort, pdf
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version