How to Export Acrobat Combo Box Items to CSV or Another PDF
Question details
The user needs to extract item labels from combo boxes within a PDF form to a CSV file or another PDF without manually copying each label.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Extracting form field data, specifically combo box options, from a PDF document for data management or reuse.
- Observed behavior
- Currently, extracting numerous combo box item labels requires manual copying, which is inefficient for PDFs with many form controls.
Ensure you have Adobe Acrobat Pro installed, as standard PDF readers do not support executing or creating advanced JavaScript for form data extraction.
Extract Combo Box Item Labels using Acrobat JavaScript
Use this method if you need to extract the exact text labels of combo box options into a text or CSV file for external use.
Adobe Acrobat allows you to use JavaScript to interact with form fields. By writing a short script in the JavaScript Debugger, you can iterate through the combo box items and print them out in a CSV-friendly format.
Open your PDF in Adobe Acrobat Pro. Press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console.
In the console, write a script that targets your specific combo box using 'this.getField("YourComboBoxName")'. Use a loop to iterate from 0 to the 'numItems' property of the field.
Inside the loop, use the 'getItemAt(i, false)' method to retrieve the label of each item (passing 'false' ensures you get the label, not the export value).
Use 'console.println()' to print the labels separated by commas. Once the script runs, copy the output from the console and paste it into a blank text document, saving it with a .csv extension.

Copy Combo Boxes Directly to Another PDF
If your goal is simply to reuse the combo box and its items in a different PDF, directly copying the form control is the fastest approach.
Manage and Edit PDF Forms Easily with WPS Office
While extracting complex JavaScript data from Acrobat can be daunting, WPS Office provides a lightweight, highly compatible alternative for handling PDFs, Word documents, Excel spreadsheets, and more, all within a single app.
- 1. Download and Install: Get WPS Office from the official website and install it on your device.
- 2. Open your PDF: Launch WPS Office and open your PDF document directly within the application.
- 3. Edit and Manage: Use the built-in PDF tools to fill out forms, add annotations, or convert the PDF to other Office formats like Word or Excel.

Frequently Asked Questions
Can I export combo box values instead of the labels?
Yes, you can modify the JavaScript to extract the export values instead of the item labels. When using the 'getItemAt(index, bExportValue)' method, set the second parameter to 'true' to retrieve the underlying export value.
Do standard PDF readers support JavaScript extraction?
No, advanced script execution for extracting form field data typically requires professional PDF authoring software like Adobe Acrobat Pro. Standard readers usually only support basic form filling.
How do I view the extracted CSV data?
Once the JavaScript outputs the comma-separated data to the console and you save it as a .csv file, you can open it directly in spreadsheet software like Microsoft Excel or WPS Spreadsheet for further analysis and formatting.




