fix generation

This commit is contained in:
Pete Matsyburka committed 2026-10-23 08:25:07 +03:00
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