in reply to pdftk encryption function

owner_pw where we were expecting an input PDF filename, operation (e.g. "cat") or "input_pw"

Just checked the page of my local pdftk: Seems like above message wants to tell you that "owner_pw" is neither a pdf-filename nor an operation nor "input_pw". ("input_pw" obviously is special)

Try adding a command, e.g. simply "cat"

$doc->call_pdftk('apps.pdf', 'test.pdf', 'cat', 'owner_pw','abc12345');

Replies are listed 'Best First'.
Re^2: pdftk encryption function
by sumalatha (Novice) on Sep 23, 2014 at 04:56 UTC

    passed a cat as argument before owner_pw, getting error as below

    Error: expecting page ranges. Instead, I got: owner_pw Errors encountered. No output created. Done. Input errors, so no output created. pdftk apps.pdf cat owner_pw 12345 test.pdf failed: 256 at /usr/lib/perl5/site_perl/5.10.0/PDF/Tk.pm line 73.

      please let me know are there are any other modules/ ways to perform pdf file encryption and decryption functions

      please help me , its of urgent for my final year project