Page 1 of 1

Javascript to protect PDF in Switch using Acrobat Professional

Posted: Mon Feb 17, 2014 6:44 pm
by rhguimas
Hello all.



I am trying to define a flow with an input folder, a Acrobat Professional connector ans a output folder.



The goal is to define a Security Policy in Acrobat that protects PDF with a Password. The final goal is to achieve this using Switch in order to be available to a lot of users at the same time.



I got a Javasript that claims to be able to Protect PDF using Acrobat but when i define it in my Switch Workflow, nothing happens.



Dow anybody knows what is necessary to define javacripts to be invoqued by a Switch workflow via Acrobat?



Thanks in advance,



Ricardo

Javascript to protect PDF in Switch using Acrobat Professional

Posted: Tue Feb 18, 2014 2:50 pm
by freddyp
Search the documentation for a section on "Javascript for applications". There you will see what variables you have to use to work correctly with a Javascript that is used in one of the CS applications configurators. In other words, you will have to make some small modifications to the script to make it work.



Alternatively, you could use pdftk. That is a command-line driven tool both for Windows and OS X so you can use it with the "Execute command" element. It is a free download, just search for "pdftk". With pdftk you can do some manipulations on PDF files, for example, add security settings and passwords.



Freddy