Skip to content

Commit 15c4822

Browse files
Update get_annotation_by_id.go
1 parent d179367 commit 15c4822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uses_cases/annotations/get_annotation_by_id.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func RequestAnnotationById(pdf_api *asposepdfcloud.PdfApiService, document_name string, annotation_id string, remote_folder string) {
10-
// Get annotation from the page in the PDF document.
10+
// Get annotation by Id in the PDF document.
1111
UploadFile(pdf_api, document_name)
1212
args := map[string]interface{}{
1313
"folder": remote_folder,
@@ -16,7 +16,7 @@ func RequestAnnotationById(pdf_api *asposepdfcloud.PdfApiService, document_name
1616
if err != nil {
1717
fmt.Println(err.Error())
1818
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
19-
fmt.Println("RequestAnnotationById(): Failed to delete annotation from the document page.")
19+
fmt.Println("RequestAnnotationById(): Failed to request text annotation from the document page.")
2020
} else {
2121
fmt.Println("RequestAnnotationById(): annotation '" + annotation_id + "' successfully found '" + result.Annotation.Contents + "' in the document '" + document_name + "'.")
2222
}

0 commit comments

Comments
 (0)