diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-05-05 10:09:46 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-05-07 18:31:40 +0100 |
commit | 79d3afa22e79363dc687d48af56c627c7879d8c8 (patch) | |
tree | d4b27ec14cdf1d2bdd747c87ab762806453f93f1 | |
parent | 434f54a053dd8ebd55fb70b9ce1eba45882f6fc4 (diff) |
Warn instead of giving error on missing password in pdfshow.
This means pdfshow can show objects in encrypted PDFs again.
-rw-r--r-- | apps/mupdfshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/mupdfshow.c b/apps/mupdfshow.c index 70ca7a623..d15bf0d39 100644 --- a/apps/mupdfshow.c +++ b/apps/mupdfshow.c @@ -210,7 +210,7 @@ int main(int argc, char **argv) doc = pdf_open_document(ctx, filename); if (pdf_needs_password(doc)) if (!pdf_authenticate_password(doc, password)) - fz_throw(ctx, "cannot authenticate password: %s", filename); + fz_warn(ctx, "cannot authenticate password: %s", filename); if (fz_optind == argc) showtrailer(); |