in reply to pdftk encryption function
The PDF::Tk documentation clearly states that the call_pdftk method "Calls up pdftk command, takes input, output and pdftk operation as arguments input and output can either be files or scalar refs. input can also be an array ref of files". I don't see any indication that it will take anything other than three arguments.
When I look at the PDFTk site, I can see that they have a product called PDFtk Server that gives you command-line capabilities. On their examples page, it even shows example command lines for encrypting and decrypting PDFs. So perhaps you might try PDFtk Server and use perl's system function (perldoc -f system) to call it under program control.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pdftk encryption function
by sumalatha (Novice) on Sep 18, 2014 at 12:10 UTC | |
by roboticus (Chancellor) on Sep 18, 2014 at 18:33 UTC | |
by Anonymous Monk on Sep 19, 2014 at 08:03 UTC | |
by roboticus (Chancellor) on Sep 19, 2014 at 17:52 UTC |