pdftk password issue

Gary Aitken freebsd at dreamchaser.org
Tue Dec 3 22:04:49 UTC 2019


Hi all,

I'm trying to extract some pages from the Fourth National Climate Assessment
   https://nca2018.globalchange.gov/downloads/NCA4_2018_FullReport.pdf
using pdftk:

pdftk A=NCA4_2018_FullReport.pdf cat A1-2 A43-45 A48-49 A951-952 output NWE_2_extracted.pdf

When I attempt this, I get the message:
   Error: Failed to open PDF file:
    NCA4_2018_FullReport.pdf
    OWNER PASSWORD REQUIRED, but not given (or incorrect)
Errors encountered.  No output created.
Done.  Input errors, so no output created.

I can read the file using xpdf just fine, so obviously a password is not
required.

I've tried adding the following at the end of the command, but the issue
persists:
   user_pw PROMPT
   owner_pw PROMPT

Any hints would be highly appreciated,

Gary


More information about the freebsd-questions mailing list