Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2019 15:04:39 -0700
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   pdftk password issue
Message-ID:  <f35eab67-17f5-7e30-d620-45c5e9799d56@dreamchaser.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f35eab67-17f5-7e30-d620-45c5e9799d56>