Guides
- Introduction
- Read Values from the Document
- Read an Area in the Document
- Name with AI
- Name and Sort Files by Rules
Easily create rules that determine which templates are used to name PDF documents and which folder they are then saved in.
You can download OnDevice OCR Pro for free from the Mac App Store and test all features. The only limitation is a watermark in the output files.
In this guide, we showed you how to easily create naming templates for different documents with OnDevice OCR Pro. These templates ensure that PDFs get meaningful file names after text recognition.
Since you often end up with many different documents that all need to be named individually, the easiest approach is to let the document’s content automatically decide which template is applied to which document: if you have created a template for naming your correspondence by default – e.g. “Sender & Contract No.” – you can create a rule that automatically searches all processed documents for the keyword “Contract No.”
If text recognition (OCR) finds a document that matches this rule, the “Sender & Contract No.” template is applied automatically and, optionally, the file is also saved in a “Correspondence” folder.
A rule can be set up in just a few minutes.
We’ll show you how to create a rule using this fictitious letter as an example.
-
Drag one or more documents into the OnDevice OCR Pro window and click “Name Files” → “New Rule…”.
With a single file, the switch is called “Name File”.
-
Enter “Contract No.” in the first text field, then click the plus button (+) to add another condition.
-
Choose “does not contain” and enter “Invoice No.”
You can enter different spellings separated by commas.
-
Choose which template to use to name the files and which folder to save them in.
Documents don’t have to be both named and sorted. For example, they can also just be named or just be saved in a specific folder.
- The first file in the window is checked automatically. Click “Test with a different file…” to check further documents.
- Optionally give the rule a name and click “Save”.
- To name or sort documents using rules, choose “Name Files” → “Apply Rules” and then click “Use”.
You’re all set
From now on, all PDF files that match this rule are automatically named using the “Sender & Contract No.” template and saved in the “Correspondence” folder. By adding more conditions, you can create a unique rule for every type of document.
Rules can be applied throughout the app: in folder monitoring (hot folders), in manual batch processing, and via Apple Shortcuts.
Frequently asked questions about rules
Can OnDevice OCR Pro automatically sort PDFs into folders based on their content?
Yes. A rule can be used to apply a template you created beforehand to documents in which text recognition finds – or does not find – certain words, and additionally save them in specified folders. If a document contains the word “Invoice”, for example, it is automatically named using the template for invoices and saved in the “Invoices” folder. Both are optional: you can also just sort documents without renaming them, or just name them without moving them to a different folder.
What happens if several rules match a document?
The rules are checked from top to bottom; the first rule that matches is applied. You can change the order simply by dragging the rules in the list. Tip: put specific rules with several conditions at the top and general rules at the bottom.
What happens if no rule matches?
You can decide whether a fallback template is used in that case or whether the document should not be named and therefore keeps its original file name.
Does the rule “Invoice” also find “Invoices” or “Invoiced”?
Not by default. The search is for whole words: “Invoice” finds “Invoice number”, but not “Invoices” or “Invoiced”. With the “Also within words” option, such word forms and compounds also count. Simply enter different spellings for the same term, such as “Invoice number, Invoice No., Inv. No.”, separated by commas.
Where does the term have to appear in the document?
The first and last pages of a document are always checked; in correspondence, invoices, and contracts, the decisive terms are usually found there. With “Test with a different file…”, you can see right away whether a rule matches the intended documents.
General questions about pricing, licensing, languages, and system requirements are answered in the FAQ on the home page.