From 3436c57daf51cbfda1939f3adffdadccfc51e307 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 20 May 2021 16:53:35 +0100 Subject: [PATCH] Beginning v2.4 documentation --- cpdfcommand.ml | 66 ++++++++++++++++++++++++++++++++++++-------------- cpdfmanual.tex | 5 +--- 2 files changed, 49 insertions(+), 22 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index d02f277..9dcccb7 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -1536,6 +1536,9 @@ and specs = ("-idir", Arg.String set_input_dir, " Add a directory of files"); + ("-pw", + Arg.String setdashpassword, + " Supply a password explicitly -pw="); ("-stdin", Arg.Unit setstdin, " Read input from standard input"); @@ -2146,6 +2149,9 @@ and specs = ("-gs-quiet", Arg.Unit setgsquiet, " Make gs go into quiet mode"); + ("-gs-malformed-force", + Arg.Unit whingemalformed, + " See manual for usage."); ("-im", Arg.String setimpath, " Path to imagemagick executable"); @@ -2161,23 +2167,48 @@ and specs = ("-dedup-perpage", Arg.Unit set_dedup_per_page, " Deduplicate extracted images per page only"); - ("-squeeze", Arg.Unit setsqueeze, " Squeeze"); - ("-squeeze-log-to", Arg.String setsqueezelogto, " Squeeze log location"); - ("-squeeze-no-pagedata", Arg.Unit setsqueezepagedata, " Don't recompress pages"); - ("-squeeze-no-recompress", Arg.Unit setsqueezerecompress, " Don't recompress streams"); - (* Just for error reporting *) - ("-gs-malformed-force", Arg.Unit whingemalformed, ""); - (* These items are not documented yet, but will be soon *) - ("-output-json", Arg.Unit (setop OutputJSON), ""); - ("-output-json-parse-content-streams", Arg.Unit setjsonparsecontentstreams, ""); - ("-output-json-no-stream-data", Arg.Unit setjsonnostreamdata, ""); - ("-ocg-coalesce-on-name", Arg.Unit (setop OCGCoalesce), ""); - ("-ocg-list", Arg.Unit (setop OCGList), ""); - ("-ocg-rename", Arg.Unit (setop OCGRename), ""); - ("-ocg-rename-from", Arg.String setocgrenamefrom, ""); - ("-ocg-rename-to", Arg.String setocgrenameto, ""); - ("-ocg-order-all", Arg.Unit (setop OCGOrderAll), ""); - ("-stamp-as-xobject", Arg.String setstampasxobject, ""); + ("-squeeze", + Arg.Unit setsqueeze, + " Squeeze"); + ("-squeeze-log-to", + Arg.String setsqueezelogto, + " Squeeze log location"); + ("-squeeze-no-pagedata", + Arg.Unit setsqueezepagedata, + " Don't recompress pages"); + ("-squeeze-no-recompress", + Arg.Unit setsqueezerecompress, + " Don't recompress streams"); + ("-output-json", + Arg.Unit (setop OutputJSON), + " Export PDF file as JSON data"); + ("-output-json-parse-content-streams", + Arg.Unit setjsonparsecontentstreams, + " Parse content streams"); + ("-output-json-no-stream-data", + Arg.Unit setjsonnostreamdata, + " Skip stream data for brevity"); + ("-ocg-list", + Arg.Unit (setop OCGList), + " List optional content groups"); + ("-ocg-rename", + Arg.Unit (setop OCGRename), + " Rename optional content group"); + ("-ocg-rename-from", + Arg.String setocgrenamefrom, + " Rename from (with -ocg-rename)"); + ("-ocg-rename-to", + Arg.String setocgrenameto, + " Rename to (with -ocg-rename)"); + ("-ocg-order-all", + Arg.Unit (setop OCGOrderAll), + " Repair /Order so all OCGs listed "); + ("-ocg-coalesce-on-name", + Arg.Unit (setop OCGCoalesce), + " Coalesce OCGs with like name"); + ("-stamp-as-xobject", + Arg.String setstampasxobject, + "Stamp a file as a form xobject in another"); (* These items are undocumented *) ("-remove-unused-resources", Arg.Unit (setop RemoveUnusedResources), ""); ("-stay-on-error", Arg.Unit setstayonerror, ""); @@ -2195,7 +2226,6 @@ and specs = ("-fix-prince", Arg.Unit (setop RemoveUnusedResources), ""); ("-extract-text", Arg.Unit (setop ExtractText), ""); ("-extract-text-font-size", Arg.Float setextracttextfontsize, ""); - ("-pw", Arg.String setdashpassword, ""); ] and usage_msg = diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 8fac97d..1146b68 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -1,6 +1,3 @@ -%a. Suggest adding the section numbers to the titles of bookmarks in the outline of the User Manual to more closely mimic the table of contents. The table of contents is primarily an artifact for the printed version and not particularly convenient for the reader of the PDF version. -%Document -pw -%Document -prepend-content, -postpend-content \documentclass{book} \usepackage{palatino} \usepackage{microtype} @@ -37,7 +34,7 @@ Command Line Toolkit} \vspace{12mm} {\Huge User Manual}\\ -Version 2.4 (? 2020) +Version 2.4 (June 2021) \vspace{25mm}