How to Create Multiple PDFs from Form Data and Rename Files
Question details
The user needs to generate individual PDF files from tab-delimited data rows, populate matching form fields, and use a specific field value to automatically rename each output file.

- Product
- PDF Editor / Word Processor
- Device & OS
- not provided
- Scenario
- Automating bulk document generation by extracting tabular data into standard form templates and exporting each record as a separate PDF.
- Observed behavior
- Producing one correctly named PDF file per data row through a process known as a PDF mail merge.
Ensure your tab-delimited data or spreadsheet is properly formatted with headers in the first row, and identify the specific column (such as Field1) that contains the unique values you want to use for naming each PDF file.
Use the Mail Merge Feature in a Word Processor (Recommended)
The simplest and most reliable way to create customized documents from tabular data is using the standard Mail Merge feature in a word processor, then exporting the results to individual PDFs.
Instead of attempting to merge data directly into a fillable PDF form, starting with a Word document template is often much easier. Word processors natively support importing tab-delimited data or Excel spreadsheets.
Once the fields are mapped and merged, you can use built-in tools or basic macros to split the output and save each document as a uniquely named PDF.
Open your word processor and design your form as a standard document template.
Navigate to the Mailings tab, select 'Start Mail Merge', and choose 'Select Recipients' to import your tab-delimited data file.
Place your cursor in the appropriate sections of your form and click 'Insert Merge Field' to map your data columns to the document.
Click 'Finish & Merge' to generate the individual documents. You can then save or export these distinct records as PDF files.

Automate with PDFMaker or Custom Acrobat JavaScript
If you must start with an existing fillable PDF form, you can use a PDF mail merge plugin or write custom JavaScript to populate fields and save each file.
Easily Create Multiple PDFs from Data Using WPS Office
WPS Writer includes a robust, easy-to-use Mail Merge tool that allows you to seamlessly import tab-delimited data or Excel spreadsheets, populate document templates, and export them as individual PDF files.
- 1. Open Template: Launch WPS Writer and open your form document template.
- 2. Access Mail Merge: Go to the 'References' tab and click on the 'Mail Merge' button.
- 3. Import Data: Click 'Open Data Source' and select your tab-delimited text file or spreadsheet.
- 4. Insert Fields: Click 'Insert Merge Field' to place your data into the correct positions within the form.
- 5. Export Output: Click 'Merge to Different New Document' to generate separate files, then save them as PDFs.

Frequently Asked Questions
Can I use an Excel file instead of tab-delimited text for generating PDFs?
Yes. Most mail merge tools natively support Excel spreadsheets (.xlsx) as data sources, which are often easier to manage, edit, and format than raw tab-delimited text files.
How do I ensure filenames are unique during a PDF mail merge?
When setting up your mail merge output, ensure that the data field you map to the filename (such as an ID number, unique email address, or full name) contains no duplicate values in your source data to prevent files from overwriting each other.
Are there free ways to perform a PDF mail merge?
Yes. Using the built-in mail merge feature of free word processors like WPS Writer to generate standard documents and then exporting those results to PDF format is a completely free and highly effective method.




