PDFTK run from the command line:
$ pdftk
SYNOPSIS
pdftk <input PDF files | - | PROMPT>
[ input_pw <input PDF owner passwords | PROMPT> ]
PDFTK run from PHP:
HI
<br>
<?php echo shell_exec('ls'); ?>
<br>
<?php echo shell_exec('pdftk'); ?>
prints
HI
css favicon.ico files images index.php js test.php
what am I missing?
Probably a path issue, not permissions (it should only require read permission for input file, and read-write for output file). Do:
to get the path, then put that in
shell_exec.