Use Rules to Automatically Rename Different Document Types

AutoSplit plug-in for Adobe® Acrobat®

Introduction
Using AutoSplit™ to auto-rename different types of documents using unique settings for each document type can be time consuming. Use rules to avoid repeating the process for each document type and process different documents in the single run. Documents with different text layouts and naming requirements can be auto-renamed at once. Separate file naming scheme will be used for each document type.
Rules are configured to search input documents for specific text or pattern. It could be account /employee/social security numbers, names, keywords or dates etc. If matching text is identified, the corresponding rule will be used to rename the file. If multiple rules match the input document, then all of them will be used to rename the document. This allows creating flexible renaming rules that adapt to differences in the document content.
In the tutorial below, we will create two separate renaming rules and use them to rename sample business documents. First file naming scheme will be designed to rename invoices, while the other to rename purchase orders. Input documents will be searched for the presence of the text "invoice" or "purchase order". If matching text is identified in an input document, the correct rule will be used to rename it.
Renaming different types of documents using rules
Input Document Description
The sample files used in this tutorial are a collection of invoices and purchase orders. The original file names do not feature any content that is related to each document's content. The goal is to rename them so that invoices are named using the invoice number located within them, and purchase orders are renamed using the relevant customer names. This information is located on the first page of each document. Such file names may be more useful when used by an accounting department or being archived for future use.
The plug-in will identify "INVOICE" or "PURCHASE ORDER" in each document, and use the correct renaming rule to generate an output filename.
Input document layout - invoices
Input document layout - purchase orders
Batch Processing Support
Automate this operation with Acrobat's batch processing tool (Action Wizard) to process similar files using the same configuration with only one click.
Prerequisites
You need a copy of Adobe® Acrobat® along with the AutoSplit Pro™ plug-in installed on your computer in order to use this tutorial. Both are available as trial versions.

Step-by-Step Tutorial

Step 1 - Open the “Auto-Rename PDF Files” Menu
Close all open PDF documents to avoid possible file access conflicts. Start Adobe® Acrobat® and select “Plug-ins > Auto-Rename PDF Files…” from the main Acrobat menu.
[⚡ How to locate Plugins menu ⚡].
Step 2 - Add a New Renaming Rule
Press “Add Rule…” to configure a file renaming rule.
add a rule
Step 3 - Setup First Renaming Rule (Invoices)
Type the text or pattern that you want to search for in the "Find what:" entry box. Here, we will search for the word invoice to identify invoices. This renaming rule will be applied only if a matching text (invoice) is found in the input PDF file.
Optional: use a search expression by checking "Use regular expressions" to find text following a specific pattern. Regular expression syntax is used to format expressions.
Check any necessary processing options such as "Match whole words only" or "Match case". In this example, both are left unchecked ("INVOICE" is uppercase in the sample invoices used here, but the expression would still work if the text case was inconsistent across all files being renamed).
Press "OK" to proceed.
add search text
Step 4 - Add File Naming Components
Press "Add..." to begin defining a file renaming scheme for the "Invoice Rule".
add file name components
Choose a method for adding a file name component. Here, we will demonstrate how to add custom text. Select the "Custom Text..." option and press "Next >>".
use custom text
Enter the custom text that you wish to add to file names when this renaming rule is used, and press "OK". Here, we will insert "Invoice_".
type custom text
Step 5 - Insert Text From a Specific Page Location into File Names
Press "Add..." to add another file renaming component.
add another component
Select the "Text From Location" option and press "Next >>".
use text from page
You will be prompted to select a sample file to define the area text should be extracted from. Press "OK" to proceed.
close prompt
Locate and select a suitable file to use, and press "Open".
select sample file
Use the zoom tool to expand a page area. Then use the drawing tool to draw a box around the desired text area by clicking and dragging the cursor.
Press "OK" to proceed.
draw extraction area
We have now completed all file naming components for the first rule. Optionally, repeat steps 4-5 to add more components. Use blue arrow buttons to re-order components.
Step 6 - Setup Second Renaming Rule (Purchase Orders)
Press “Add Rule…” to add renaming rule for "Purchase Order" documents.
add another rule
This renaming rule will be used only if purchase order is found in the input document.
Press "OK" to proceed.
type 2nd search text
Step 7 - Add File Name Components
Press "Add..." to configure the file name components to be used when renaming purchase orders.
add renaming components
We will use the same method as steps 4 & 5 above to rename purchase orders with custom text ("PO_"), followed by text extracted from a specific page location. Here, we will extract customer names located within each purchase order in the output file names. Select a sample file to define the area text should be extracted from, then use the zoom/drawing tools to draw a box around where names are located.
Press "OK" to proceed.
draw 2nd extraction box
A single renaming rule will be used when either "invoice" or "purchase order" is identified within an input document.
check renaming rules
Step 8 - Optional: Move Renamed Files
Optionally, move renamed files in a separate location (instead of replacing existing file names) by checking the "Move successfully renamed files to another folder" option. Press "Select Output Folder..." button to choose an output folder for storing the renamed files.
move renamed files
Locate the desired folder, select it, and press "Select Folder".
select output folder
Step 9 - Optional: Save Settings
Optionally, press "Save Settings..." button to save this configuration as a *.docren settings file for future re-use. Settings can be loaded back via the "Load Settings..." button.
Click "OK" to start renaming files.
save/confirm settings
Step 10 - Add Files for Renaming
Press “Add Files…” in the “Select Input Files” dialog to select files that need to be renamed. Consider also making backup copies of the input files before processing.
add input files
Select PDF files that need to be renamed and click "Open" once done. Note that files from multiple folders can be added with repeated use of the "Add Files..." button.
select files to rename
Selected PDF files will be listed in the "Select Input Files" dialog. Press "OK" once all necessary files have been selected.
rename selected files
Step 11 - Confirm New File Names
The software will process input files without renaming them yet, and present "computed" file names in the "Review and Confirm New File Names" dialog. The documents have been searched for text matching the search rules, and the appropriate one has been used to create a new file name for each document type. Note that no files have actually been renamed at this step.
Review the new file names and edit them manually (if necessary) by double-clicking on an output file name cell.
Press “Rename” to actually start renaming files.
review new file names
Step 12 - Review the Processing Report
Check the renaming statistics. Click “OK” to open a processing report.
open a processing report
The processing report shows detailed information on how many files have been renamed or failed, along with input/output file names for each document.
Optionally, save this report by pressing the "Save..." button. Click "Close" to close it.
save/close the report
Inspect the new file names. Invoices and purchase orders now follow an "Invoice_0123456789" or "PO_John Doe" format:
inspect the results
You can find more AutoSplit tutorials here.