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

Javascript Console Log returning undefined

Explorer ,
Nov 07, 2016 Nov 07, 2016

I run this code from the js console to get to see the different save options I have but it returns undefined.

app.fromPDFConverters.join("\n")

undefined

TOPICS
Acrobat SDK and JavaScript , Windows
1.9K
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
Community Expert ,
Nov 07, 2016 Nov 07, 2016
LATEST

"undefined" just means the code completed execution without returning any values or throwing any errors.

Usually it's a good thing, but in your case it means there are no PDF converters installed, which is strange.

The result should have been something like this:

com.adobe.acrobat.eps

com.adobe.acrobat.xlsx

com.adobe.acrobat.html

com.adobe.acrobat.html-3-20

com.adobe.acrobat.html-4-01-css-1-00

com.adobe.acrobat.jpeg

com.adobe.acrobat.jp2k

com.callas.preflight.pdfa

com.callas.preflight.pdfe

com.callas.preflight.pdfx

com.adobe.acrobat.png

com.adobe.acrobat.ps

com.adobe.acrobat.pptx

com.adobe.acrobat.rtf

com.adobe.acrobat.accesstext

com.adobe.acrobat.plain-text

com.adobe.acrobat.tiff

com.adobe.acrobat.doc

com.adobe.acrobat.docx

com.adobe.acrobat.xml-1-00

com.adobe.acrobat.spreadsheet

Are you running this code in Acrobat or in Reader? If the former I suggest you perform a Repair Installation.

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