mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -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
@@ -42,7 +42,11 @@ FactoryBot.define do
|
||||
record: template
|
||||
)
|
||||
|
||||
Templates::ProcessDocument.call(attachment, attachment.download)
|
||||
data = attachment.download
|
||||
|
||||
Pdfium::Document.open_io(StringIO.new(data)) do |doc|
|
||||
Templates::ProcessDocument.call(attachment, data, doc:)
|
||||
end
|
||||
|
||||
template.schema << {
|
||||
attachment_uuid: attachment.uuid,
|
||||
|
||||
Reference in new issue
Block a user