Fix Acrobat Creating a Zero-Byte CSV When Exporting PDF Form Data
Question details
The user is attempting to export data from a batch of PDF forms into a CSV file, but the process fails, resulting in an empty spreadsheet.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Merging and exporting form data from multiple PDF files into a single CSV spreadsheet for data analysis.
- Observed behavior
- The export dialog closes prematurely without completing the process, generating a zero-byte CSV file that remains locked by Acrobat. This failure is triggered by a PDF form in the batch that was previously edited in macOS Preview.
Ensure all running instances of Adobe Acrobat are fully closed using your system's Task Manager or Force Quit menu, as this will release the lock on the zero-byte CSV file so you can delete it.
Isolate and Remove the Corrupted PDF Form via Batch Testing
Since a single corrupted PDF form (often saved in macOS Preview) breaks the entire export process, you must process your files in smaller batches to find and remove the problematic file.
macOS Preview handles PDF forms differently than standard PDF editors. When a user fills out or saves a scripted PDF form using Apple's Preview app, the internal structure of the AcroForm or JavaScript is often damaged. When Acrobat attempts to extract data from this damaged file, the export engine crashes, yielding a zero-byte file.
Split your large batch of PDF forms into smaller folders containing 10 to 20 files each.
In Acrobat, go to 'Prepare Form', select 'More', and choose 'Merge Data Files into Spreadsheet'. Test one folder at a time.
If a folder successfully exports, those files are clean. When a folder fails and creates a zero-byte CSV, you know the corrupted file is inside that specific group.
Split the failing folder in half and test again. Repeat this elimination process until you identify the exact PDF causing the crash, and remove it from your main export batch.

Recreate the Data from the Damaged Form
If you cannot ask the sender to resubmit the form, you will need to manually transfer the data into a clean PDF template to include it in your CSV export.
Manage PDFs and Spreadsheets Seamlessly with WPS Office
If you are dealing with broken forms or struggling with expensive PDF and spreadsheet software, WPS Office provides a lightweight, all-in-one solution. It features a robust PDF editor for safe form handling and a highly compatible spreadsheet tool to analyze your CSV exports without software crashes.
- 1. Download and Install: Visit the official WPS Office website to download the free suite for your Windows, Mac, or Linux device.
- 2. Safely View PDF Forms: Use WPS PDF to open your forms. It accurately preserves standard PDF scripts and interactive elements, reducing corruption risks.
- 3. Analyze Exported Data: Open your successfully exported CSV files directly in WPS Spreadsheet to filter, format, and analyze your data seamlessly.

Frequently Asked Questions
Why does macOS Preview corrupt PDF forms?
macOS Preview utilizes Apple's proprietary PDF rendering engine, which does not fully support complex JavaScript, XFA forms, or specific interactive elements designed for Adobe standard environments. When a form is saved in Preview, these unsupported elements are often flattened, stripped, or incorrectly rewritten, damaging the internal file structure.
Is there a limit to how many PDF files I can export data from at once?
While there is no strict software limitation on the exact number of files, attempting to merge hundreds or thousands of complex PDF forms at once can overwhelm system memory and cause the export dialog to crash. Processing files in batches of 50 to 100 is highly recommended for stability.
Why can't I delete the zero-byte CSV file from my computer?
When the export process fails due to a corrupted PDF, the software crashes internally but fails to release its background lock on the CSV file it created. You must forcefully close the PDF software via Task Manager (Windows) or Activity Monitor (Mac) to free the file so it can be deleted.
Does exporting PDF form data to FDF bypass the macOS Preview error?
No. Exporting form data to an FDF (Forms Data Format) or XML file will generally encounter the exact same failure if the source PDF was corrupted in macOS Preview. The underlying issue is the broken script structure within the document, which prevents data extraction in any format.




