Processing rules are user specific automations intended to ease and assist on preprocessing documents when they are being uploaded. If for instance you find to repetitevely editing the documents in same or similar fashion, a suitable processing rule may be able to automate the task.
Some common tasks to do with processing rules are:
Virtualpaper is able to extract dates directly from document content and name. Often times multiple dates are actually found, in which case Virtualpaper uses heuristics to select the best date. It tries to select the most occuring date but also a date that’s upcoming in the near future.
Extracting dates is a special feature of Virtualpaper, which uses different mechanism than any other rule. If the rule condition finds and extracts a valid date the date is temporarily stored separately from the document. If there’s ‘Set Date’ action, the date time is saved as the document’s date regardless of the Action’s Value. The Value cannot be empty, but other thatn that its content doesn’t affect the processing in any way.
In order to get date extraction to work probely, two things are needed:
Hint you can add multiple layouts and regular expressions by adding a condition for each layout. Just be sure to set rule mode to ‘Match all’.
Name | Marker |
---|---|
Day | 2, 02 |
Month | 1, 01, Jan |
Year | 06, 2006 |
Examples of valid time layouts:
For more info on Go’s time layouts, see: Golang time package’s documentation.
Conditions:
(\d{1,2}.\d{1,2}.\d{4})
matches dates that are of format 1.2.2006.Action: