in reply to Re: pdftk functionality
in thread pdftk functionality

CPAN Module "PDF::Tk" itself is a Perl integration for the pdf toolkit (pdftk). is it necessary to install pdftk binary from https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/.

Replies are listed 'Best First'.
Re^3: pdftk functionality
by Anonymous Monk on Sep 17, 2014 at 07:13 UTC

    installed the pdftk binary file and the path to variable and tried running , getting error as below: Error: "pdftk input.pdf owner_pw foopass outPDF.pdf failed: -1 at /usr/lib/perl5/site_perl/5.10.0/PDF/Tk.pm line 73."

    use PDF::Tk; my $doc=PDF::Tk->new(pdftk=>'/apps/free/pdftk/'); $doc->call_pdftk('input.pdf', 'outPDF.pdf', 'owner_pw', 'foopass');

    please guide me in resolving it