mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
process pdf v2
This commit is contained in:
1 parent
785eb789ad
commit
f9669b0e16
9 files changed
+59
-458
No files matched your search
@@ -13,9 +13,10 @@ class TemplatesDebugController < ApplicationController
|
||||
data = attachment.download
|
||||
|
||||
unless attachment.image?
|
||||
pdf = HexaPDF::Document.new(io: StringIO.new(data))
|
||||
|
||||
fields = Templates::FindAcroFields.call(pdf, attachment, data)
|
||||
fields =
|
||||
Pdfium::Document.open_io(StringIO.new(data)) do |doc|
|
||||
Templates::FindPdfiumAcroFields.call(attachment, doc, data)
|
||||
end
|
||||
end
|
||||
|
||||
# fields, = Templates::DetectFields.call(StringIO.new(data), attachment:) if fields.blank?
|
||||
|
||||
Reference in new issue
Block a user