How to Preserve PDF File Modification Dates During OCR
Question details
The user wants to perform OCR on historical PDF files without altering their original file modification dates.

- Product
- PDF Editors
- Device & OS
- not provided
- Scenario
- Batch processing or running OCR on older PDF documents where preserving the original metadata and historical timestamps is crucial.
- Observed behavior
- Running OCR adds a new text layer and resaves the document, which causes the operating system to automatically update the 'Date Modified' property to the current time.
Because OCR physically alters the file by adding a hidden text layer, the operating system will inevitably update the modification date upon saving. You must secure your original metadata before making any edits.
Create a Duplicate Backup Before Running OCR
The safest and most reliable way to preserve historical file dates is to duplicate the documents before modifying them with OCR.
Since standard PDF editors (like Acrobat or WPS PDF) do not have a built-in feature to freeze operating system timestamps during a file save, you should rely on file management.
By performing OCR on a copy of the file, the original document remains untouched and its historical modification date is perfectly preserved.
Right-click on your desktop or inside your file explorer, select 'New', and then 'Folder'. Name it 'Original PDFs Archive'.
Select all the historical PDF files you intend to process. Press Ctrl+C (Windows) or Cmd+C (Mac) to copy, then paste them into your new backup folder.
Open the copies (not the archived originals) in your PDF editor and run the OCR process. The working copies will get new modification dates, while your archived files retain their original timestamps.

Restore Dates Using a File Attribute Changer
If you need the newly OCR-processed files to display the old modification dates, you can manually revert the timestamps using third-party attribute editing software.
Effortlessly Extract Text from PDFs with WPS Office
WPS Office offers a powerful, built-in OCR feature for scanned PDF documents. While standard OS rules still apply to modification dates, WPS PDF's intuitive 'Save As' functionality allows you to easily create a new searchable document while leaving your historical original files completely untouched.
- 1. Open your PDF: Launch WPS Office and open the scanned or historical PDF you want to process.
- 2. Access the OCR Tool: Navigate to the 'Tools' tab on the top ribbon and click on the 'OCR' button.
- 3. Extract and Save As: Select your desired language and layout options. Once the text is extracted, use the 'Menu' > 'Save As' option to create a new file, preserving the original document's modification date.

Frequently Asked Questions
Why does my PDF modification date change when I run OCR?
Running OCR analyzes the image and embeds a new, searchable text layer into the PDF. Because the file's contents are rewritten and saved, the operating system automatically updates the 'Date Modified' property to the exact time the save occurred.
Can Adobe Acrobat or WPS automatically freeze the modification date during OCR?
No. Standard PDF editors rely on your operating system's file management rules. Because the file itself is being fundamentally altered, the OS will always update the modification timestamp.
Does the 'Date Created' also change when running OCR?
Generally, if you overwrite the existing file by simply clicking 'Save', the 'Date Created' remains the same, but the 'Date Modified' will change. If you use 'Save As' to make a new file, the 'Date Created' will be the current time.
Is there a way to batch process PDFs and keep their old dates?
The most effective method is to use a script or a third-party file attribute tool. You can run OCR on your batch of files, and then use the tool to batch-revert the 'Date Modified' attributes back to their original recorded states.




