mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix generation
This commit is contained in:
1 parent
e40a29b9ab
commit
99b815eb4b
1 file changed
+2
@@ -884,6 +884,8 @@ module Submissions
|
||||
end
|
||||
|
||||
def maybe_flatten_pdf(pdf)
|
||||
pdf.catalog.delete(:AcroForm) if pdf.catalog[:AcroForm].is_a?(Integer)
|
||||
|
||||
pdf.acro_form.create_appearances(force: true) if pdf.acro_form && pdf.acro_form[:NeedAppearances]
|
||||
pdf.acro_form&.flatten
|
||||
rescue HexaPDF::MissingGlyphError
|
||||
|
||||
Reference in new issue
Block a user