diff options
Diffstat (limited to 'tex/context/base/mkiv/lpdf-lmt.lmt')
-rw-r--r-- | tex/context/base/mkiv/lpdf-lmt.lmt | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tex/context/base/mkiv/lpdf-lmt.lmt b/tex/context/base/mkiv/lpdf-lmt.lmt index 61a194ca4..fd0236fc7 100644 --- a/tex/context/base/mkiv/lpdf-lmt.lmt +++ b/tex/context/base/mkiv/lpdf-lmt.lmt @@ -1696,15 +1696,19 @@ local finalize do lpdf.finalizepage(true) - -- if relocated then - -- if pageattributes.TrimBox then pageattributes.TrimBox = box end - -- if pageattributes.CropBox then pageattributes.CropBox = box end - -- if pageattributes.BleedBox then pageattributes.BleedBox = box end - -- end + local TrimBox = pageattributes.TrimBox + local CropBox = pageattributes.CropBox + local BleedBox = pageattributes.BleedBox + + if relocated then + if TrimBox then TrimBox = box end + if CropBox then CropBox = box end + if BleedBox then BleedBox = box end + end - if pageattributes.TrimBox then pageattributes.TrimBox = relocated and pdfsharedobject(box or pageattributes.TrimBox ) end - if pageattributes.CropBox then pageattributes.CropBox = relocated and pdfsharedobject(box or pageattributes.CropBox ) end - if pageattributes.BleedBox then pageattributes.BleedBox = relocated and pdfsharedobject(box or pageattributes.BleedBox) end + if TrimBox then pageattributes.TrimBox = pdfsharedobject(TrimBox ) end + if CropBox then pageattributes.CropBox = pdfsharedobject(CropBox ) end + if BleedBox then pageattributes.BleedBox = pdfsharedobject(BleedBox) end else |