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