Finish skeleton for -chop

This commit is contained in:
John Whitington 2023-11-15 17:34:14 +00:00
parent 6357f8f610
commit 04353276f3
1 changed files with 7 additions and 0 deletions

View File

@ -1716,6 +1716,10 @@ let setimposespacing f =
let setimposelinewidth f =
args.impose_linewidth <- f
let setchop s =
let x, y = Cpdfcoord.parse_coordinate empty s in
setop (Chop (int_of_float x, int_of_float y)) ()
let setreplacedictentry s =
setop (ReplaceDictEntry s) ()
@ -2323,6 +2327,9 @@ and specs =
("-impose-linewidth",
Arg.Float setimposelinewidth,
" Imposition divider line width (0=none)");
("-chop",
Arg.String setchop,
" Chop x by y");
("-pad-before",
Arg.Unit (setop PadBefore),
" Add a blank page before the given pages");