Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF to HTML Conversion with Interapplication Communication Api in Mac OS

New Here ,
Jul 25, 2017 Jul 25, 2017

I'm trying to convert a PDF file via the Interapplication Communication API of Adobe Acrobat.

My script doesn't appear to be converting my file from PDF to HTML.  It works for other formats (e.g. plain-text).   Here is my AppleScript code:

set myfile to "/PATH/pdf_schedule.pdf"

set outfile to ("PATH:pdf_schedule.html" as text)

tell application "Adobe Acrobat"

  -- get every conversion

  activate

  open myfile

  save document 1 to file outfile using conversion "com.adobe.acrobat.html"

  close document 1

end tell

And `get every conversion` returns this:

{EPS Conversion "com.adobe.acrobat.eps" of application "Adobe Acrobat", conversion "com.adobe.acrobat.xlsx" of application "Adobe Acrobat", conversion "com.adobe.acrobat.html" of application "Adobe Acrobat", conversion "com.adobe.acrobat.jpeg" of application "Adobe Acrobat", conversion "com.adobe.acrobat.jp2k" of application "Adobe Acrobat", conversion "com.callas.preflight.pdfa" of application "Adobe Acrobat", conversion "com.callas.preflight.pdfe" of application "Adobe Acrobat", conversion "com.callas.preflight.pdfx" of application "Adobe Acrobat", conversion "com.adobe.acrobat.png" of application "Adobe Acrobat", PostScript Conversion "com.adobe.acrobat.ps" of application "Adobe Acrobat", conversion "com.adobe.acrobat.pptx" of application "Adobe Acrobat", conversion "com.adobe.acrobat.rtf" of application "Adobe Acrobat", conversion "com.adobe.acrobat.accesstext" of application "Adobe Acrobat", conversion "com.adobe.acrobat.plain-text" of application "Adobe Acrobat", conversion "com.adobe.acrobat.tiff" of application "Adobe Acrobat", conversion "com.adobe.acrobat.doc" of application "Adobe Acrobat", conversion "com.adobe.acrobat.docx" of application "Adobe Acrobat", conversion "com.adobe.acrobat.xml-1-00" of application "Adobe Acrobat", conversion "com.adobe.acrobat.spreadsheet" of application "Adobe Acrobat"}

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 26, 2017 Jul 26, 2017

This isn't a question about Acrobat Reader, and few programmers visit here. So I suggest you repost in the Acrobat SDK forum. Be sure to include the exact (dot) version of Acrobat Pro in use.

Translate
LEGEND ,
Jul 26, 2017 Jul 26, 2017

This isn't a question about Acrobat Reader, and few programmers visit here. So I suggest you repost in the Acrobat SDK forum. Be sure to include the exact (dot) version of Acrobat Pro in use.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2017 Jul 26, 2017
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines