Fix clipping
This commit is contained in:
parent
740d671261
commit
b199297040
8
cpdf.ml
8
cpdf.ml
|
@ -2722,8 +2722,8 @@ let twoup_pages pdf = function
|
|||
let clipops =
|
||||
let minx, miny, maxx, maxy = Pdf.parse_rectangle clipbox in
|
||||
[Pdfops.Op_re (minx, miny, maxx -. minx, maxy -. miny);
|
||||
Pdfops.Op_n;
|
||||
Pdfops.Op_W]
|
||||
Pdfops.Op_W;
|
||||
Pdfops.Op_n]
|
||||
in
|
||||
let ops = Pdfops.parse_operators pdf resources' contents in
|
||||
(* Need protect_removeme here? especially new, Q-adding protect? *)
|
||||
|
@ -2776,8 +2776,8 @@ let twoup_pages_stack pdf = function
|
|||
let clipops =
|
||||
let minx, miny, maxx, maxy = Pdf.parse_rectangle clipbox in
|
||||
[Pdfops.Op_re (minx, miny, maxx -. minx, maxy -. miny);
|
||||
Pdfops.Op_n;
|
||||
Pdfops.Op_W]
|
||||
Pdfops.Op_W;
|
||||
Pdfops.Op_n]
|
||||
in
|
||||
let ops = Pdfops.parse_operators pdf resources contents in
|
||||
Pdfops.stream_of_ops
|
||||
|
|
Loading…
Reference in New Issue