mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
reset rotation
This commit is contained in:
1 parent
85fbae1813
commit
11f27c8cf0
1 file changed
+5
@@ -581,6 +581,10 @@ class Pdfium
|
|||||||
@page_rotations[page_index] ||= Pdfium.FPDFPage_GetRotationRaw(@document_ptr, page_index)
|
@page_rotations[page_index] ||= Pdfium.FPDFPage_GetRotationRaw(@document_ptr, page_index)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def reset_page_rotation(page_index)
|
||||||
|
@page_rotations.delete(page_index)
|
||||||
|
end
|
||||||
|
|
||||||
def encrypted?
|
def encrypted?
|
||||||
Pdfium.FPDF_GetSecurityHandlerRevision(@document_ptr) >= 0
|
Pdfium.FPDF_GetSecurityHandlerRevision(@document_ptr) >= 0
|
||||||
end
|
end
|
||||||
@@ -1010,6 +1014,7 @@ class Pdfium
|
|||||||
Pdfium.FPDFPage_SetRotation(@page_ptr, value)
|
Pdfium.FPDFPage_SetRotation(@page_ptr, value)
|
||||||
|
|
||||||
@document.reset_page_size(@page_index)
|
@document.reset_page_size(@page_index)
|
||||||
|
@document.reset_page_rotation(@page_index)
|
||||||
|
|
||||||
@rotation = value
|
@rotation = value
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user