How to batch rename files after splitting a PDF

After splitting a PDF, you end up with a bunch of files named something like “page_1,” which are hard to identify. This article explains how to extract identifiers such as drawing numbers from the page content, create a mapping table, and then rename the files manually or in batch, followed by a step-by-step verification after renaming.

After a PDF split is complete, it’s common to end up with a bunch of files named"Page_1,""Page_2,"or"Untitled,"and you have to open each one individually to see what it contains. If the split involved drawings, contract attachments, exam papers, or reports, these files also need to be renamed according to drawing numbers, project names, or identifiers before they can be handed over to others or filed away.

This article explains how to neatly organize filenames after splitting them. The key is to first determine the naming criteria, then choose a renaming method: when the rules are clear and there are many files, use a mapping table combined with batch renaming; when there are few files, manual renaming is more reliable. After reading this, you’ll be able to decide which approach to use and know how to verify the results afterward.

After splitting a PDF, how should you batch rename the files? One-sentence conclusion

The filename should be derived from the page content, rather than being arbitrarily numbered according to the splitting order. First determine the basis for naming, then decide which renaming method to use; this will significantly reduce the amount of rework.

Your situationRecommended practiceReason
There are only a few files, and their names can be anything.Manually rename them one by oneWith a small quantity, checking them one by one is quick and less prone to errors.
Each page's title bar or header includes the drawing number and sheet number.Read the numbering, create a lookup table, and then batch rename.The filenames correspond one-to-one with the drawings, making them easy to locate.
The page is a scanned image, so text cannot be directly selected.First use OCR to recognize the text, then verify the numbering.The rationale can only be read after recognition, but the recognition results require manual confirmation.
Files should be filed by project or date.Standardize to the format "ProjectName_SerialNumber_DrawingName"Consistent formatting makes sorting and retrieval easier.
The splitting of similar terms must be performed repeatedly.Fixed naming template, save the lookup tableNext time, just apply it directly without redesigning the rules.

Before You Begin: First, Confirm These Points

Before you start, confirm the following points to avoid discovering halfway through that the rules are incorrect.

  • Where is the naming convention specified? For the same set of drawings, some sheet numbers are in the lower right corner, others in the header, and some only show page numbers. First, flip through a few pages to determine a consistent location for retrieving values.
  • Is the file a scanned copy? Try selecting a text segment on the page; if you cannot select it, it is likely a scanned document. The numbering in scanned files requires OCR to be read, and after recognition, verify it against the original page.
  • Which characters are allowed in filenames? Both Windows and macOS prohibit / \ : * ? " < > | from appearing in filenames, and names within the same folder must be unique.
  • Keep the original file. Save copies of both the split files and the original PDF so that you can revert changes without needing to re-split.
  • Ensure uniform sequence digit length. When there are 10 or more files, use two-digit sequence numbers like 01, 02 to avoid sorting issues where 10 appears before 2.

Steps to Split a PDF in OmniDoc and Prepare for Naming

The following steps are performed in the PDF editor of the OmniDoc desktop client to split and organize the files; for renaming, use the system’s built-in file management features.

  1. Open the PDF you want to split in the OmniDoc desktop client and enter the PDF editor.
  2. Use the Split function in Page Operations to extract individual files by page or page range. Before splitting, note down the page number ranges corresponding to each segment for later verification.
  3. Open the split results one by one and locate where the naming criteria are specified, such as drawing numbers in the title bar. If the pages are scanned, first use OCR to recognize the text, then verify the identified numbers.
  4. Create a correspondence table with one row per file, containing three columns: "Original Page Number," "Content Basis," and "New File Name." Fill in the new file names according to a uniform format, e.g., "Project A_01_Master Plan."
  5. Check the correspondence table for duplicate names, illegal characters, and missing page numbers.
  6. Rename files according to the table. For a small number of files, rename them individually; for a larger number, use spreadsheet formulas to generate new file names, then copy them into your system's file manager's batch renaming feature to execute.
  7. After renaming, randomly open several files to confirm that the file names match the page contents.

Check each item after completion

Renaming does not mean completion. Please check the following items one by one; most issues lie in the correspondence table or OCR results, so simply return to the table and make corrections.

Check itemHow do you see it?What should I do if there is a problem?
Number of filesConsistent with the number of rows in the reference table and with the number of split page segments.Quantity does not match; return to the original PDF to verify the page range.
Total number of pagesThe sum of the page counts of all files equals the original PDF's page count.If anything is missing, supplement and remove the missing pages; if there are duplicates, delete the extra files.
Filename and ContentRandomly check the drawing number or title on the first page of each file.If there is a mismatch, correct the mapping table and then rename it again.
Name conflictsSort by name within the folder to check for duplicate names.Add a version number or supplementary distinguishing field.
Illegal characterThe filename must not contain / \ : * ? " < > |Replace with a hyphen or underscore
OCR recognition errorCompare with the original page, paying particular attention to numbers, letters, and similar-looking characters.Manually correct the output; do not directly use the recognition results.

The OCR recognition results require manual verification, especially for drawing numbers and contract numbers, as a single-character error could cause the document to be filed in the wrong location.

📊 Core Comparison

Renaming by drawing number or title is commonly done in three ways, each suited to different situations.

MethodSuitable situationsAdvantages and Points to Note
Manually rename them one by oneIf there are fewer than 5 files, the names can be arbitrary.Directly, no extra preparation is needed; however, it’s easy to overlook items when the quantity becomes large.
Batch Rename in System File ManagerThe naming rules are simple, such as uniformly adding a prefix or uniformly appending sequence numbers.Fast operation; test on a copy first, and execute only after confirming the rules are correct.
Comparison table with batch renamingEach file has a different name and must be read from the page accordingly.There was a bit more tidying up in the early stages, but verification and reuse saved time.

❓ Frequently Asked Questions (FAQ)

1. After splitting, the filenames contain only page numbers; can they be renamed directly using the page numbers?

That’s possible, but page numbers alone don’t convey the document’s content, making future searches inconvenient. I recommend combining page numbers with figure numbers or titles, for example,"02_Page 2_Floor Plan."

2. The extracted files are scanned images; how do you read their names?

First, use OCR to recognize the numbering on the page, then verify each item against the original page. If the recognition results are incorrect, manually correct the comparison table; do not adopt them directly.

3. What should I do if the file name is too long and gets truncated?

Only retain the fields necessary to distinguish the files, such as the project name, sequence number, and drawing name. Leave the remaining descriptions in the remarks column of the reference table, so the file names can remain concise.

4. I changed the file name; do I also need to update the title in the PDF?

The file name and the page content are two separate things; changing the file name will not alter the text on the page. If you also need to modify the titles on the page, you can directly edit the paragraph text in a PDF editor.

5. What tool should be used to create the comparison table?

Any spreadsheet software will do, as long as it can handle three columns and generate a new file name. The advantage of using a spreadsheet is that you can save it and reuse the template for similar splits in the future.

📝 Summary

The key to batch renaming split PDFs is to first determine the naming criteria, then create a mapping table, and finally apply the changes uniformly. After renaming, verify the files against three criteria—page count, filename and content, and illegal characters—to organize the split files into a structure that is easy to search and archive.

Open OmniDoc and process your files with a PDF editor.

Updated 2026-11-29