Options for -chop
This commit is contained in:
parent
76a0c23a5c
commit
87320f2082
|
@ -1,8 +1,6 @@
|
||||||
open Pdfutil
|
open Pdfutil
|
||||||
open Cpdferror
|
open Cpdferror
|
||||||
|
|
||||||
(* 1. FIXME btt / rtl / columns *)
|
|
||||||
|
|
||||||
(* Chop a single page into pieces. We prefer the cropbox when available. We set
|
(* Chop a single page into pieces. We prefer the cropbox when available. We set
|
||||||
mediabox only, and delete any other boxes. We delete /Annots, since
|
mediabox only, and delete any other boxes. We delete /Annots, since
|
||||||
duplicate annotations are not allowed. *)
|
duplicate annotations are not allowed. *)
|
||||||
|
|
|
@ -2314,10 +2314,10 @@ and specs =
|
||||||
" Impose in columns rather than rows");
|
" Impose in columns rather than rows");
|
||||||
("-impose-rtl",
|
("-impose-rtl",
|
||||||
Arg.Unit setimposertl,
|
Arg.Unit setimposertl,
|
||||||
" Impose right-to-left on rows");
|
" Impose right-to-left");
|
||||||
("-impose-btt",
|
("-impose-btt",
|
||||||
Arg.Unit setimposebtt,
|
Arg.Unit setimposebtt,
|
||||||
" Impose bottom-to-top on columns");
|
" Impose bottom-to-top");
|
||||||
("-impose-margin",
|
("-impose-margin",
|
||||||
Arg.Float setimposemargin,
|
Arg.Float setimposemargin,
|
||||||
" Add margin around whole imposed page");
|
" Add margin around whole imposed page");
|
||||||
|
@ -2330,6 +2330,15 @@ and specs =
|
||||||
("-chop",
|
("-chop",
|
||||||
Arg.String setchop,
|
Arg.String setchop,
|
||||||
" Chop x by y");
|
" Chop x by y");
|
||||||
|
("-chop-columns",
|
||||||
|
Arg.Unit setimposecolumns,
|
||||||
|
" Chop in columns rather than rows");
|
||||||
|
("-chop-rtl",
|
||||||
|
Arg.Unit setimposertl,
|
||||||
|
" Chop right-to-left");
|
||||||
|
("-chop-btt",
|
||||||
|
Arg.Unit setimposebtt,
|
||||||
|
" Chop bottom-to-top");
|
||||||
("-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");
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
%Document -list-images[-json], -list-image-uses[-json], -image-resolution-json
|
%Document -list-images[-json], -list-image-uses[-json], -image-resolution-json
|
||||||
%Document -raw for -extract-images
|
%Document -raw for -extract-images
|
||||||
%Add note to -fast about content sharing (with reference to -chop, but in general too)
|
%Add note to -fast about content sharing (with reference to -chop, but in general too)
|
||||||
|
%Document -chop
|
||||||
|
%Replace -impose-rtl etc with -rtl etc.
|
||||||
\documentclass{book}
|
\documentclass{book}
|
||||||
% Edit here to produce cpdfmanual.pdf, cpdflibmanual.pdf, pycpdfmanual.pdf,
|
% Edit here to produce cpdfmanual.pdf, cpdflibmanual.pdf, pycpdfmanual.pdf,
|
||||||
% dotnetcpdflibmanual.pdf, jcpdflibmanual.pdf jscpdflibmanual.pdf etc.
|
% dotnetcpdflibmanual.pdf, jcpdflibmanual.pdf jscpdflibmanual.pdf etc.
|
||||||
|
|
Loading…
Reference in New Issue