diff --git a/Changes b/Changes index 6d7e3ef..16804eb 100644 --- a/Changes +++ b/Changes @@ -18,6 +18,7 @@ o List images on a page with -list-images[-json] o Chop pages up into sections with -chop o Build PDF files from JBIG2 streams, including globals o Reprocess images within PDFs to further compress them +o New -pages-fast to print number of pages from /Count Extended features: diff --git a/cpdfcommand.ml b/cpdfcommand.ml index b857737..4587228 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -955,7 +955,7 @@ let rec decrypt_if_necessary (_, _, user_pw, owner_pw, was_dec_with_owner, _) op (* Output Page Count *) let output_page_count pdf = - Printf.printf "%i\n" (Pdfpage.endpage pdf) + Printf.printf "%i\n" ((if args.fast then Pdfpage.endpage_fast else Pdfpage.endpage) pdf) let detect_duplicate_op op = match args.op with diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 3a5962e..f19c191 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -10,6 +10,7 @@ %Document -extract-images JBIG2 for how to use jbig2dec %Document -jbig2 / -jbig2globals %Document -process-images +%Document -pages -fast \documentclass{book} % Edit here to produce cpdfmanual.pdf, cpdflibmanual.pdf, pycpdfmanual.pdf, % dotnetcpdflibmanual.pdf, jcpdflibmanual.pdf jscpdflibmanual.pdf etc.