Spaces in filename arguments interpreted as separate files
A simple call to password protect a PDF (1 file input, 1 file output) fails if there is a space in the file path, even if the argument is quoted. I have tried escaping, etc., with no luck.
makr@mybox:~> pdftk "/home/makr/Test Drawings/811084.pdf" update_info "/home/makr/drawings-meta.txt" output "/home/makr/Test Drawings/811084.pdfe" encrypt_128bit owner_pw mypass dont_ask
Error: Unable to find file.
Error: Failed to open PDF file:
/home/makr/Test
Error: Unable to find file.
Error: Failed to open PDF file:
Drawings/811084.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
As a test I used a wildcard on the input file, and it errored on the output filename as well.
Error: Unexpected data in output section:
Drawings/811084.pdfe
Exiting.
Errors encountered. No output created.
Done. Input errors, so no output created.