I am writing an Acrobat Javascript script. How can one use a JavaScript library in an Acrobat JavaScript script?
Asked
Active
Viewed 54 times
1
-
What library are you trying to use? Is `npm` involved at all? – Dai Jan 29 '22 at 01:52
-
@Dai thanks, I'm curious for any JS library. I.e., I'm curious about the cases where npm is involved and the cases where npm is not involved. – Franck Dernoncourt Jan 29 '22 at 01:53
-
Possible dupes: https://stackoverflow.com/questions/42451977/include-js-library-into-pdf https://stackoverflow.com/questions/67039534/how-can-i-use-a-external-js-file-for-acrobat-scripting – SuperStormer Jan 29 '22 at 01:56
-
1You can write it in newer JavaScript and then transpile it back to ES5 using something like webpack – evolutionxbox Jan 29 '22 at 02:13
-
@evolutionxbox thanks, that's an interesting idea, you're welcome to post your comment as an answer. – Franck Dernoncourt Jan 29 '22 at 02:17
-
@SuperStormer thanks, both links seem to be the case where the Acrobat Javascript script is embedded in a PDF. – Franck Dernoncourt Jan 29 '22 at 02:18