How to Automatically Name Scanned Invoices Using PDF Data
Question details
The user wants to scan invoices and automatically generate filenames based on specific extracted fields such as the date, supplier name, and invoice number.

- Product
- PDF Editors
- Device & OS
- not provided
- Scenario
- Organizing and batch processing a large number of scanned invoices without manual data entry.
- Observed behavior
- Looking for an automated workflow to select multiple page regions, extract the text via OCR, and combine the results into structured filenames.
Ensure your scanned invoices are of high quality (at least 300 DPI) and have consistent layouts for the most accurate OCR data extraction.
Use Dedicated Document Processing Automation Software
Since standard PDF editors lack built-in multi-region auto-renaming, using a specialized automation tool with Zonal OCR is the most reliable method.
Most standard PDF readers and editors do not natively support extracting multiple specific text regions to build a filename. Dedicated automation tools bridge this gap by using 'Zonal OCR' to read exact locations on a page.
Choose a document processing software or add-on that supports zone OCR and batch file renaming (e.g., specialized invoice processing apps).
Open a sample invoice in the software and draw capture zones around the specific fields you need: the date, supplier name, and invoice number.
Configure the output settings to combine these OCR zones into a single structured filename formula, such as [Date]_[Supplier]_[InvoiceNumber].pdf.
Process your folder of scanned invoices. The software will automatically read the defined fields on each page and rename the files accordingly.

Apply Custom Scripts in Adobe Acrobat
Use Adobe Acrobat's Action Wizard combined with custom JavaScript to extract text and save the document under a new name.
Extract Invoice Data Easily with WPS PDF's OCR
While fully automated zonal renaming requires specialized workflow scripts, WPS PDF provides highly accurate OCR to quickly extract invoice dates, supplier names, and amounts. You can easily process scanned images into editable text, drastically reducing the time spent manually copying and organizing your invoice records.
- 1. Open your scanned invoice: Launch WPS Office and open your scanned invoice in the WPS PDF tool.
- 2. Access the OCR feature: Navigate to the 'Tools' tab on the top ribbon and click on the 'OCR' button.
- 3. Extract the required text: Select 'Extract Text' to have WPS recognize the text on the page, allowing you to highlight and pull the date, supplier, and invoice number.
- 4. Rename or record data: Copy the extracted text to quickly rename the PDF file manually, or paste the accurate data straight into your invoice tracking spreadsheet.

Frequently Asked Questions
Can I use standard PDF editors to automatically rename files based on text inside them?
Standard PDF editors do not typically have a built-in, one-click feature for automatic zonal OCR renaming. You usually need to rely on custom JavaScript workflows or dedicated batch-processing tools to achieve fully automated renaming.
What is Zonal OCR?
Zonal OCR is a specialized scanning technology that allows you to define specific areas (zones) on a document template, such as the top right corner for an invoice number. The software then extracts text exclusively from those areas to use for data entry or automated file renaming.
How can I improve OCR accuracy for my scanned invoices?
To get the best OCR results, ensure your invoices are scanned at a resolution of at least 300 DPI, properly aligned (not skewed), and have high contrast between the printed text and the background.




