Skip to content
OnDevice OCR Business Guides
Language

Automatically Sort PDFs into Folders and Rename Them by Content

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 Business 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 Business. These templates ensure that PDFs get meaningful file names after text recognition.

Since everyday business involves a wide variety of 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. We already created a template for naming it in this guide.

  1. Open OnDevice OCR Business and click “Name Files” → “New Rule…”.
  1. Enter “Contract No.” in the first text field, then click the plus button (+) to add another condition.

  2. Choose “does not contain” and enter “Invoice No.”

    You can enter different spellings separated by commas.

  3. 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.

  1. Click “Test with a sample file…” to check right away whether the rule would work with the intended documents.
  2. Optionally give the rule a name and click “Save”.
  1. 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 hot folders, in manual batch processing, and via Apple Shortcuts.

Frequently asked questions about rules#

Can OnDevice OCR Business 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 “Invoicing”?

Not by default. The search is for whole words: “Invoice” finds “Invoice number”, but not “Invoices” or “Invoicing”. 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 sample 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.

Still have a question? Write to [email protected].