Add caching logging packaging and annotation management
This commit is contained in:
@@ -63,12 +63,16 @@ def main() -> int:
|
||||
document = PdfDocument()
|
||||
document.open(source_pdf)
|
||||
assert document.render_page(0, 1.0).width() > 0
|
||||
assert document.render_page(0, 1.0).width() > 0
|
||||
assert document.search("feature")
|
||||
assert document.highlight_text(0, "feature") == 1
|
||||
assert document.underline_text(0, "feature") == 1
|
||||
assert document.strikeout_text(0, "feature") == 1
|
||||
|
||||
document.add_note(0, "note")
|
||||
annotations = document.annotations()
|
||||
assert annotations
|
||||
assert document.delete_annotation(annotations[0].page_index, annotations[0].xref)
|
||||
document.add_text(0, "PDFReaderLite")
|
||||
document.insert_image(0, image_path)
|
||||
document.add_signature(0, image_path)
|
||||
|
||||
Reference in New Issue
Block a user