diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-19 00:58:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-01-19 17:48:49 +0100 |
commit | 75b6425fe9ce8136dbc852415471708d365b4d25 (patch) | |
tree | 3d5533b150d5eb5fd3fe8efa8b667512a44edef7 /ios | |
parent | 08e84b18e5c1dbe8f3d32dd0aeb4b4c43debce9f (diff) | |
download | mupdf-75b6425fe9ce8136dbc852415471708d365b4d25.tar.xz |
Remove confusing optional 'password' argument to pdf_open_xref.
Require that clients call pdf_needs_password/pdf_authenticate_password
instead. For dumb clients, we still allow for decrypting a file with
a blank password without calling those functions.
Diffstat (limited to 'ios')
-rw-r--r-- | ios/document.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/document.c b/ios/document.c index 3d014d6b..5531a980 100644 --- a/ios/document.c +++ b/ios/document.c @@ -19,7 +19,7 @@ open_document(fz_context *ctx, char *filename) { if (strstr(filename, ".pdf") || strstr(filename, ".PDF")) { - doc->pdf = pdf_open_xref(ctx, filename, NULL); + doc->pdf = pdf_open_xref(ctx, filename); pdf_load_page_tree(doc->pdf); } else if (strstr(filename, ".xps") || strstr(filename, ".XPS")) |