mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-13 16:26:28 +00:00
19 lines
362 B
Plaintext
19 lines
362 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# Test that the installed qpdf CLI works. Requires the CLI and runtime
|
||
|
# libraries.
|
||
|
#
|
||
|
set -ex
|
||
|
|
||
|
TMP=$1
|
||
|
if [ ! -d "$TMP" ]; then
|
||
|
echo 1>&2 "Usage: $0 tmp-dir"
|
||
|
exit 2
|
||
|
fi
|
||
|
|
||
|
qpdf --version
|
||
|
qpdf --help
|
||
|
qpdf --check qpdf/qtest/qpdf/minimal.pdf
|
||
|
qpdf qpdf/qtest/qpdf/minimal.pdf --encrypt u o 256 -- $TMP/out.pdf
|
||
|
qpdf --check --password=u $TMP/out.pdf
|