Skip to content

Commit 603204d

Browse files
Examples for Aspose.PDF Cloud 19.3 Java SDK
1 parent ac1667b commit 603204d

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 com.aspose.asposecloudpdf.ApiException;
4+
import com.aspose.asposecloudpdf.api.PdfApi;
5+
import com.aspose.asposecloudpdf.examples.Common;
6+
import com.aspose.asposecloudpdf.model.AsposeResponse;
7+
import com.aspose.asposecloudpdf.model.ScreenAnnotationsResponse;
8+
9+
public class putScreenAnnotationDataExtract {
10+
11+
public static void main(String[] args) throws ApiException {
12+
String name = "PdfWithScreenAnnotations.pdf";
13+
14+
PdfApi pdfApi = new PdfApi("XXXXXXXXXXX", "XXXXXXX");
15+
Common.uploadFile(pdfApi, name);
16+
17+
ScreenAnnotationsResponse responseAnnotations = pdfApi.getDocumentScreenAnnotations(name, null, null);
18+
String annotationId = responseAnnotations.getAnnotations().getList().get(0).getId();
19+
20+
AsposeResponse response = pdfApi.putScreenAnnotationDataExtract(name, annotationId, "outFile.dat", null, null);
21+
System.out.println(response);
22+
23+
}
24+
25+
}

0 commit comments

Comments
 (0)