Add undo redo page reorder and handwritten signatures
This commit is contained in:
+12
-1
@@ -66,6 +66,10 @@ def main() -> int:
|
||||
assert document.render_page(0, 1.0).width() > 0
|
||||
assert document.search("feature")
|
||||
assert document.highlight_text(0, "feature") == 1
|
||||
assert document.can_undo()
|
||||
assert document.undo()
|
||||
assert document.redo()
|
||||
assert document.highlight_text(0, "feature") == 1
|
||||
assert document.underline_text(0, "feature") == 1
|
||||
assert document.strikeout_text(0, "feature") == 1
|
||||
|
||||
@@ -86,6 +90,7 @@ def main() -> int:
|
||||
assert blank_index == 1
|
||||
assert document.insert_pdf(insert_pdf, blank_index) == 1
|
||||
assert document.page_count == 3
|
||||
document.move_page(2, 1)
|
||||
|
||||
document.extract_pages([1, 3], extracted_pdf)
|
||||
document.split_to_folder(split_folder)
|
||||
@@ -94,7 +99,13 @@ def main() -> int:
|
||||
document.update_metadata("PDFReaderLite", "smoke test", "test", "pdf")
|
||||
PdfDocument.merge_pdfs([source_pdf, insert_pdf], merged_pdf)
|
||||
PdfDocument.images_to_pdf([image_path], image_pdf)
|
||||
document.save_encrypted(encrypted_pdf, "123456")
|
||||
document.save_encrypted(
|
||||
encrypted_pdf,
|
||||
"123456",
|
||||
allow_print=True,
|
||||
allow_copy=False,
|
||||
allow_modify=False,
|
||||
)
|
||||
document.save()
|
||||
document.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user