Skip to content

Commit ac1667b

Browse files
Create getScreenAnnotationData.java
1 parent def3aa9 commit ac1667b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.aspose.asposecloudpdf.examples.screen;
2+
3+
import java.io.File;
4+
5+
import com.aspose.asposecloudpdf.ApiException;
6+
import com.aspose.asposecloudpdf.api.PdfApi;
7+
import com.aspose.asposecloudpdf.examples.Common;
8+
import com.aspose.asposecloudpdf.model.ScreenAnnotationsResponse;
9+
10+
public class getScreenAnnotationData {
11+
12+
public static void main(String[] args) throws ApiException {
13+
String name = "PdfWithScreenAnnotations.pdf";
14+
15+
PdfApi pdfApi = new PdfApi("XXXXXXXXXXX", "XXXXXXX");
16+
Common.uploadFile(pdfApi, name);
17+
18+
ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, null);
19+
String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId();
20+
21+
File response = pdfApi.getScreenAnnotationData(name, annotationId, null, null);
22+
23+
}
24+
25+
}

0 commit comments

Comments
 (0)