mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Finish skeleton for -chop
This commit is contained in:
@ -1716,6 +1716,10 @@ let setimposespacing f =
|
|||||||
let setimposelinewidth f =
|
let setimposelinewidth f =
|
||||||
args.impose_linewidth <- 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 =
|
let setreplacedictentry s =
|
||||||
setop (ReplaceDictEntry s) ()
|
setop (ReplaceDictEntry s) ()
|
||||||
|
|
||||||
@ -2323,6 +2327,9 @@ and specs =
|
|||||||
("-impose-linewidth",
|
("-impose-linewidth",
|
||||||
Arg.Float setimposelinewidth,
|
Arg.Float setimposelinewidth,
|
||||||
" Imposition divider line width (0=none)");
|
" Imposition divider line width (0=none)");
|
||||||
|
("-chop",
|
||||||
|
Arg.String setchop,
|
||||||
|
" Chop x by y");
|
||||||
("-pad-before",
|
("-pad-before",
|
||||||
Arg.Unit (setop PadBefore),
|
Arg.Unit (setop PadBefore),
|
||||||
" Add a blank page before the given pages");
|
" Add a blank page before the given pages");
|
||||||
|
Reference in New Issue
Block a user