raw page size

This commit is contained in:
Pete Matsyburka committed 2026-09-05 13:09:09 +03:00
1 parent 9ad281d457
commit 887d80f6d7
2 files changed
+29 -4

No files matched your search

+1 -4
View File
@@ -345,10 +345,7 @@ module Templates
uuid = pdf_ref['attachment_uuid']
source = sources[[uuid, nil]] ||= open_or_build_pdf(attachments_index[uuid])
page = source.get_page(pdf_ref['page'])
width = page.width
height = page.height
width, height = source.page_size(pdf_ref['page'])
width, height = height, width unless (pdf_ref['rotate'].to_i % 180).zero?