mirror of
https://github.com/docusealco/docuseal
synced 2026-11-14 15:52:32 -05:00
fix page preview open
This commit is contained in:
1 parent
cbbc75b485
commit
eec08266c9
1 file changed
+9
-1
+9
-1
@@ -640,7 +640,15 @@ class Pdfium
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.open_io(io, password = nil)
|
def self.open_io(io, password = nil, &)
|
||||||
|
path = io.path if io.respond_to?(:path)
|
||||||
|
|
||||||
|
if path
|
||||||
|
io.flush
|
||||||
|
|
||||||
|
return open_file(path, password, &)
|
||||||
|
end
|
||||||
|
|
||||||
io.binmode
|
io.binmode
|
||||||
|
|
||||||
get_block = FFI::Function.new(:int, %i[pointer ulong pointer ulong]) do |_param, position, out, size|
|
get_block = FFI::Function.new(:int, %i[pointer ulong pointer ulong]) do |_param, position, out, size|
|
||||||
|
|||||||
Reference in new issue
Block a user