From 75b6425fe9ce8136dbc852415471708d365b4d25 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 19 Jan 2012 00:58:09 +0100 Subject: 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. --- ios/document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ios') 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")) -- cgit v1.2.3