fix pdf validation

This commit is contained in:
Pete Matsyburka committed 2026-09-06 09:58:19 +03:00
1 parent 887d80f6d7
commit ec04a95e36
2 files changed
+11 -4

No files matched your search

+2 -2
View File
@@ -2306,14 +2306,14 @@ class Pdfium
[PageObject, *to_a].hash
end
private
def object_ptr
page.ensure_not_closed!
Pdfium.FPDFPage_GetObject(page.page_ptr, index)
end
private
def read_bounds
buffer = Array.new(4) { FFI::MemoryPointer.new(:float) }