Commit b8ccbff413de5b1000cdc65ba25ff46c6ccaec66
1 parent
15ed9f85
doc: point out use of @filename for specifying password (fixes #198)
Showing
2 changed files
with
9 additions
and
1 deletions
manual/qpdf-manual.xml
| ... | ... | @@ -310,7 +310,11 @@ make |
| 310 | 310 | <term><option>--password=password</option></term> |
| 311 | 311 | <listitem> |
| 312 | 312 | <para> |
| 313 | - Specifies a password for accessing encrypted files. | |
| 313 | + Specifies a password for accessing encrypted files. Note that | |
| 314 | + you can use <option>@filename</option> or <option>@-</option> | |
| 315 | + as described above to put the password in a file or pass it | |
| 316 | + via standard input so you can avoid specifying it on the | |
| 317 | + command line. | |
| 314 | 318 | </para> |
| 315 | 319 | </listitem> |
| 316 | 320 | </varlistentry> | ... | ... |
qpdf/qpdf.cc
| ... | ... | @@ -243,6 +243,10 @@ Basic Options\n\ |
| 243 | 243 | rotate each specified page 90, 180, or 270 degrees\n\ |
| 244 | 244 | --split-pages=[n] write each output page to a separate file\n\ |
| 245 | 245 | \n\ |
| 246 | +Note that you can use the @filename or @- syntax for any argument at any\n\ | |
| 247 | +point in the command. This provides a good way to specify a password without\n\ | |
| 248 | +having to explicitly put it on the command line.\n\ | |
| 249 | +\n\ | |
| 246 | 250 | If none of --copy-encryption, --encrypt or --decrypt are given, qpdf will\n\ |
| 247 | 251 | preserve any encryption data associated with a file.\n\ |
| 248 | 252 | \n\ | ... | ... |