mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Fix margin calculation in presence of crop box
This commit is contained in:
@ -233,7 +233,7 @@ let typeset_table_of_contents ~font ~fontsize ~title ~bookmark ~dotleader ~proce
|
|||||||
@
|
@
|
||||||
optional [Cpdftype.EndTag] @ [glue]
|
optional [Cpdftype.EndTag] @ [glue]
|
||||||
in
|
in
|
||||||
let lm, rm, tm, bm =
|
let lm, rm, bm, tm =
|
||||||
match firstpage_cropbox with
|
match firstpage_cropbox with
|
||||||
| None -> (margin, margin, margin, margin)
|
| None -> (margin, margin, margin, margin)
|
||||||
| Some (cminx, cminy, cmaxx, cmaxy) ->
|
| Some (cminx, cminy, cmaxx, cmaxy) ->
|
||||||
|
Reference in New Issue
Block a user