Convert Multiple HTML Files to PDFs with Adobe Acrobat
Question details
The user wants to convert every HTML file in a folder to a separate PDF and understand whether Acrobat JavaScript can automate the task.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Batch-converting a folder of HTML files to PDF.
- Observed behavior
- The desired result is one PDF per HTML file, using Acrobat or another batch-processing tool.
Check whether your Acrobat edition includes Action Wizard and whether it accepts your HTML files as action inputs. Keep any linked images, stylesheets, and other resources accessible so the converted pages can render correctly.
Use Acrobat Action Wizard to process a folder
Try this Acrobat-based approach if your edition includes Action Wizard and supports your HTML files as inputs.
Acrobat JavaScript does not provide a simple built-in way to batch-convert every HTML file in a folder. Action Wizard can automate processing, but available input formats and options depend on your Acrobat version.
In Acrobat Pro, open All tools and look for Use guided actions or Action Wizard. In some versions, you can find Action Wizard under Tools.
Select New Action, then add a folder or select the HTML files as the files to be processed. If Acrobat does not accept them as inputs, use the command-line solution instead.
Add a Save step to the action and choose an output folder and naming settings. Save the action with a recognizable name.
Run the action on one HTML file first. If it produces the expected PDF, run it on the full folder and check the output.

Batch-convert HTML files with a command-line tool
Use this option when Acrobat cannot accept the HTML files as action inputs.
Create PDFs from Office Documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing documents into your workflow. Use it to work with Office files and export documents to PDF; it does not fix Acrobat JavaScript or replace the HTML batch-conversion steps above.

Frequently Asked Questions
Can Acrobat JavaScript convert every HTML file in a folder?
Acrobat JavaScript does not offer a simple built-in method for this batch conversion. Try Action Wizard if it accepts the HTML files, or use a dedicated command-line converter.
Where can I find Action Wizard in Acrobat?
In Acrobat Pro, check All tools for Use guided actions or Action Wizard. In some versions, it appears under Tools.
What if Action Wizard does not accept my HTML files?
Use a batch-processing application such as wkhtmltopdf. On macOS or Linux, you can run a shell loop from the folder containing the HTML files.
Why are images or styles missing from the converted PDFs?
The converter may not be able to reach linked resources. Check the image and stylesheet paths in the HTML, and ensure the resources are accessible during conversion.




