mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
fix pdf fields extract
This commit is contained in:
1 parent
661e9b69fb
commit
1ba8a9a374
3 files changed
+6
-5
No files matched your search
@@ -6,9 +6,10 @@ class TemplatesDebugController < ApplicationController
|
||||
def show
|
||||
attachment = @template.documents.first
|
||||
|
||||
pdf = HexaPDF::Document.new(io: StringIO.new(attachment.download))
|
||||
data = attachment.download
|
||||
pdf = HexaPDF::Document.new(io: StringIO.new(data))
|
||||
|
||||
fields = Templates::FindAcroFields.call(pdf, attachment)
|
||||
fields = Templates::FindAcroFields.call(pdf, attachment, data)
|
||||
|
||||
attachment.metadata['pdf'] ||= {}
|
||||
attachment.metadata['pdf']['fields'] = fields
|
||||
|
||||
Reference in new issue
Block a user