From b8ccbff413de5b1000cdc65ba25ff46c6ccaec66 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 5 May 2018 17:52:04 -0400 Subject: doc: point out use of @filename for specifying password (fixes #198) --- manual/qpdf-manual.xml | 6 +++++- qpdf/qpdf.cc | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 83b4c429..0c8a3291 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -310,7 +310,11 @@ make - Specifies a password for accessing encrypted files. + Specifies a password for accessing encrypted files. Note that + you can use or + as described above to put the password in a file or pass it + via standard input so you can avoid specifying it on the + command line. diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index caeda8e4..2b18400d 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -243,6 +243,10 @@ Basic Options\n\ rotate each specified page 90, 180, or 270 degrees\n\ --split-pages=[n] write each output page to a separate file\n\ \n\ +Note that you can use the @filename or @- syntax for any argument at any\n\ +point in the command. This provides a good way to specify a password without\n\ +having to explicitly put it on the command line.\n\ +\n\ If none of --copy-encryption, --encrypt or --decrypt are given, qpdf will\n\ preserve any encryption data associated with a file.\n\ \n\ -- cgit v1.2.3-70-g09d2