简体   繁体   中英

PDF JS: add JavaScript automatically to PDF during DOCX to PDF conversion

When I convert a Word to a PDF I would like to have JavaScript added automatically. The functionality like inks etc being kept during the conversation is very limited. Currently I need to add functionality to the PDF by means of JavaScrip manually to allow eg jumps to attached documents. Is there any posibitly to automate that?

It seems that it can be automated. You just need to be clever with how the JavaScript is written so that it's portable.

The Acrobat DC ribbon in Word includes an option to Create PDF and Run Action which will create the PDF file as normal and then immediately run an action on the new file. Actions can run JavaScripts and JavaScripts can be used to add buttons, links, bookmarks, etc to the PDF that also have JavaScripts associated with them. I have not started yet to look into the details but I assume you make basically use of the Action Wizard by combining that with Adobes superior create PDF function (instead of Microsofts save as pdf).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM