diff options
-rw-r--r-- | apps/pdfextract.c | 8 | ||||
-rw-r--r-- | apps/pdfshow.c | 8 | ||||
-rw-r--r-- | debian/pdfshow.1 | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c index 6dff0bed..ce939b4c 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -6,8 +6,8 @@ static void showusage(void) { - fprintf(stderr, "usage: pdfextract [-d password] <file> [object numbers]\n"); - fprintf(stderr, " -d \tdecrypt password\n"); + fprintf(stderr, "usage: pdfextract [-p password] <file> [object numbers]\n"); + fprintf(stderr, " -p \tpassword\n"); exit(1); } @@ -216,11 +216,11 @@ int main(int argc, char **argv) char *password = ""; int c, o; - while ((c = fz_getopt(argc, argv, "d:")) != -1) + while ((c = fz_getopt(argc, argv, "p:")) != -1) { switch (c) { - case 'd': password = fz_optarg; break; + case 'p': password = fz_optarg; break; default: showusage(); break; diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 9ada637f..b773d8bf 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -10,10 +10,10 @@ static int showcolumn; static void showusage(void) { - fprintf(stderr, "usage: pdfshow [-bx] [-d password] <file> [xref] [trailer] [object numbers]\n"); + fprintf(stderr, "usage: pdfshow [-bx] [-p password] <file> [xref] [trailer] [object numbers]\n"); fprintf(stderr, " -b \tprint streams as raw binary data\n"); fprintf(stderr, " -x \tdecompress streams\n"); - fprintf(stderr, " -d \tdecrypt password\n"); + fprintf(stderr, " -p \tdecrypt password\n"); exit(1); } @@ -125,11 +125,11 @@ int main(int argc, char **argv) char *password = ""; int c; - while ((c = fz_getopt(argc, argv, "d:bx")) != -1) + while ((c = fz_getopt(argc, argv, "p:bx")) != -1) { switch (c) { - case 'd': password = fz_optarg; break; + case 'p': password = fz_optarg; break; case 'b': showbinary ++; break; case 'x': showdecode ++; break; default: diff --git a/debian/pdfshow.1 b/debian/pdfshow.1 index 9eed6df6..3767aa61 100644 --- a/debian/pdfshow.1 +++ b/debian/pdfshow.1 @@ -1,4 +1,4 @@ -.TH PDFSHOW 1 "March 21, 2010" +.TH PDFSHOW 1 "April 15, 2010" .\" Please adjust this date whenever revising the manpage. .SH NAME pdfshow \- PDF file debugging tool used to show PDF objects @@ -27,7 +27,7 @@ A description of each of the supported options is included below. .B \-b Causes pdfshow to print all object streams as raw binary data .TP -.B \-d password +.B \-p password Uses the given password during decryption of an encrypted PDF file. The password is tried both as user and owner password. .TP |