Skip to content

Commit c0aead5

Browse files
Update annotations_launch.py
1 parent 5511b1a commit c0aead5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Uses-Cases/Annotations/annotations_launch.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from annotations_helper import PdfAnnotationsHelper, Config
22
from get_annotations import PdfGetAnnotations
3+
from get_annotation_by_id import PdfGetAnnotationById
34
from new_highlight_annotation import PdfAddHighlightAnnotations
45
from new_strikeout_annotation import PdfAddStrikeoutAnnotations
56
from new_text_annotation import PdfAddFreeTextAnnotations
@@ -15,8 +16,10 @@
1516
modify_ant.modify_annotation()
1617

1718
get_ant = PdfGetAnnotations(helper.pdf_api, helper)
18-
annotation_id =get_ant.get_annotations()
19-
get_ant.get_annotation(annotation_id)
19+
annotation_id =get_ant.request_annotations()
20+
21+
rq_ant = PdfGetAnnotationById(helper.pdf_api, helper)
22+
rq_ant.request_annotation(annotation_id)
2023

2124
del_ant = PdfDalTextAnnotations(helper.pdf_api, helper)
2225
del_ant.delete_annotation()
@@ -34,4 +37,4 @@
3437
add_ft.append_text_annotation()
3538

3639
add_ul = PdfAddUnderlineAnnotations(helper.pdf_api, helper)
37-
add_ul.append_underline_annotation()
40+
add_ul.append_underline_annotation()

0 commit comments

Comments
 (0)