mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
fix result generation on missing page
This commit is contained in:
1 parent
8a1b71688c
commit
f1e0d5d137
1 file changed
+5
@@ -39,7 +39,12 @@ module Submissions
|
||||
field.fetch('areas', []).each do |area|
|
||||
pdf = pdfs_index[area['attachment_uuid']]
|
||||
|
||||
next if pdf.nil?
|
||||
|
||||
page = pdf.pages[area['page']]
|
||||
|
||||
next if page.nil?
|
||||
|
||||
page.rotate(0, flatten: true) if page[:Rotate] != 0
|
||||
|
||||
page[:Annots] ||= []
|
||||
|
||||
Reference in new issue
Block a user