Javascript to protect PDF in Switch using Acrobat Professional

Post Reply
rhguimas
Newbie
Posts: 1
Joined: Tue Feb 11, 2014 9:29 pm

Javascript to protect PDF in Switch using Acrobat Professional

Post 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
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Javascript to protect PDF in Switch using Acrobat Professional

Post 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
Post Reply