mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
raw page size
This commit is contained in:
1 parent
9ad281d457
commit
887d80f6d7
2 files changed
+29
-4
No files matched your search
@@ -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?
|
||||
|
||||
|
||||
Reference in new issue
Block a user