Skip to main content
boilermaker73
Inspiring
April 9, 2021
Answered

JS Collection Demo

  • April 9, 2021
  • 3 replies
  • 6290 views

While the Adobe Acrobat DC SDK Samples Guide refers to a JS Collection Demo containing a number of javascript snippets (the contents of which are briefly described therein), I have been unable to find this collection anywhere online allegedly provided in PDF. As the Acrobat SDK samples guide appears to have been created/written in February 2021, I am somewhat surprised that I have been unsuccessful to date in being able to find the JS Collection Demo. If anyone knows where I can find and secure a copy of the PDF online containing the scripts, I would be most grateful? Thank you ahead of time.

This topic has been closed for replies.
Correct answer boilermaker73

Hi,

If you select the menu item - "Save Portfolio as webpage", this creates a shockingly bad folder structure of all the files in the portfolio, and if you look through those files you should find "JSCollectionDemo.pdf" that has the sample you mention above, I have attached it but I know that doesn't always work.


I wanted to personally thank BarlaeDC for the reply to my question regarding the JSCollectionDemo.pdf. FWIW, your attachment was all I needed. Unfortunately, I was disappointed in perusing the popup menu script in that I was hopng I would learn something about creating a popup mnu I didn't aleady know. Thank you again for your help.

3 replies

Brainiac
April 9, 2021

Anyway, you need the SDK. The SDK may not be what you think it is. It's just a collection of docs, samples, header files and stuff like that. It doesn't provide any processing - that's done by Acrobat. (This is the usual thing for SDKs. For example, the Windows SDK describes how to automate the copy of Windows you already have). The SDK is currently free. 

I found the download of docs as PDF. https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/documentation.html Ironically, they used to all be in PDF format, but switched more than 10 years ago to a maddening collection of HTML docs. Now they are back to PDF. The SDK has been essentially frozen except for a trickle of "needed for a new feature" stuff for 15 years. I observe the download page says "The SDK library is rapidly evolving." This could be an interesting time for those of us who'd got used to it being frozen.

boilermaker73
Inspiring
April 10, 2021

BarlaeDC was right on in that the JS Portfolio Collection is provided in the latest SDK created in 2021 that I was able to download from the Adobe website. Once again, I am quite surprised that Adobe didn't include the JS Portfolio in the zip file of all the other PDF docs. Unfortunately, my only issue is that I am rusty and not well versed in using the Acrobat JS console that I believe is required in order to open/view and run the scripts contained in the portfolio collection. Any suggestions on where to find instructions for using the console to access/run the scripts? Thank you ahead of time?

boilermaker73
Inspiring
April 12, 2021

The message does not say it appears in the Acrobat JavaScripts folder (a protected folder that normal users cannot write). The message says something else.


No. The message specifically states and I quote, 'Folder level javascript samples successfully copied to the user Javascript folder'. If for some reason you are unable to view the jpeg image I previously provided, please refrain from providing any additional comments. I have been using Acrobat Pro since it first debuted in 1993 and to the best of my recollection, the user Javascript folder has always been a subdirectory of the version of Acrobat installed whether Acrobat 6, 7, 8,....X, XI, or 2017. Once again, the sample JS files were no where to be found in the user Javascript folder. Anyone else by chance expereince this issue? Thank you ahead of time.

BarlaeDC
Community Expert
April 9, 2021

Hi,

 

It is in the SDK under the JavaScriptSupportFolder and is called "Acrobat SDK JavaScript Samples Portfolio.pdf", I think that is what you are after and it is in the SDK as mentioned above.

boilermaker73
Inspiring
April 9, 2021

Thank you for the reply. I presently do not have the SDK installed on my computer even though I have Acrobat 2017. I am assuming I can download and install the current SDK for free from the Adobe website. Correct? This aside, I am surprised the JS samples portfolio wasn't included in the Acrobat documents download containing (15) SDK docs in PDF format or am I missing something? 

Brainiac
April 9, 2021

Did you install the SDK?