mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fix nup-badges for PDFs with cropbox (Z#23160479) (#4354)
This commit is contained in:
committed by
GitHub
parent
83a8fcaa47
commit
ed9caa04fc
@@ -237,7 +237,7 @@ def _render_nup_page(nup_pdf: PdfWriter, input_pages: PageObject, opt: dict) ->
|
||||
Decimal('%.5f' % (page.mediabox.right.as_numeric() + tx)),
|
||||
Decimal('%.5f' % (page.mediabox.top.as_numeric() + ty))
|
||||
))
|
||||
page.trimbox = page.mediabox
|
||||
page.trimbox = page.cropbox = page.mediabox
|
||||
nup_page.merge_page(page)
|
||||
return nup_page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user