mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
adjust preview cache
This commit is contained in:
1 parent
485b7f2c8f
commit
eeec852b3b
3 files changed
+90
-19
No files matched your search
@@ -192,8 +192,8 @@ module Templates
|
||||
end
|
||||
end
|
||||
|
||||
def generate_pdf_preview_from_file(attachment, file_path, page_number)
|
||||
doc = Pdfium::Document.open_file(file_path)
|
||||
def generate_pdf_preview_from_io(attachment, io, page_number)
|
||||
doc = Pdfium::Document.open_io(io)
|
||||
|
||||
doc_page = doc.get_page(page_number)
|
||||
|
||||
|
||||
Reference in new issue
Block a user