process pdf v2

This commit is contained in:
Pete Matsyburka committed 2026-09-03 11:48:54 +03:00
1 parent 785eb789ad
commit f9669b0e16
9 files changed
+59 -458

No files matched your search

+5 -1
View File
@@ -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,