mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Badges: Ignore trimBox when using background PDF (Z#2398854)
This commit is contained in:
committed by
GitHub
parent
b33ac1910e
commit
dc0caed540
@@ -196,6 +196,7 @@ def render_pdf(event, positions, opt):
|
|||||||
)
|
)
|
||||||
for i, (op, r) in enumerate(positions):
|
for i, (op, r) in enumerate(positions):
|
||||||
bg_page = copy.copy(r.bg_pdf.getPage(0))
|
bg_page = copy.copy(r.bg_pdf.getPage(0))
|
||||||
|
bg_page.trimBox = bg_page.mediaBox
|
||||||
offsetx = opt['margins'][3] + (i % opt['cols']) * opt['offsets'][0]
|
offsetx = opt['margins'][3] + (i % opt['cols']) * opt['offsets'][0]
|
||||||
offsety = opt['margins'][2] + (opt['rows'] - 1 - i // opt['cols']) * opt['offsets'][1]
|
offsety = opt['margins'][2] + (opt['rows'] - 1 - i // opt['cols']) * opt['offsets'][1]
|
||||||
empty_pdf_page.mergeTranslatedPage(
|
empty_pdf_page.mergeTranslatedPage(
|
||||||
|
|||||||
Reference in New Issue
Block a user