Skip to main content
Premiopolis
Inspiring
November 9, 2019
Question

How to batch-convert PDF files to HTML using AppleScript (or any other means) on Mac OS

  • November 9, 2019
  • 1 reply
  • 6449 views

Looking for ways to batch convert PDFs to HTML using Acrobat Pro DC
Basically I'm looking to automate the following: Acrobat > Menu: Export To > HTML Web Page > {Settings: Single HTML Page, Include Images, Recognize text if needed, Set Language}

 

This forums page from 2017 shows a promising AppleScript approach, but so far only the JPG exports are working.

 

Been chasing down AppleScript (osascript), JXA (AppleScript's flavor of JS), Acrobat JS, and Command Line, but haven't cracked it yet.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 9, 2019

None of those are necessary. You can simply use the Action Wizard that's built-in into Acrobat Pro.

Create a new Action and add to it the Save command (from the Save & Export sub-panel) and then click on Specify Settings underneath it and select the following options:

 

 

Then save your Action and run it on your PDF files to convert them to HTML files. All done!

 

Premiopolis
Inspiring
November 9, 2019

Thanks try67

 

If necessary I'll go that route.  The reason I was hoping to work out an externally-coded approach: We've got thousands of files, scattered across multiple volumes.  I'd like the external code to read file list and in turn generate the HTMLs right next to the originals, ideally without ever having to open Acrobat directly.

try67
Community Expert
Community Expert
November 9, 2019

If you're looking for a solution that works independently of Acrobat then a forum about Acrobat is not really the right place for your question...