Skip to content

Commit d5f485d

Browse files
committed
Updated sources
1 parent b999e41 commit d5f485d

93 files changed

Lines changed: 3132 additions & 902 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2003-2020 Aspose Pty Ltd
3+
Copyright (c) 2003-2019 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 50 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,19 @@
1-
![](https://img.shields.io/badge/api-v2.0-lightgrey) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android) [![GitHub license](https://img.shields.io/github/license/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android)](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android)
1+
# GroupDocs.Annotation Cloud SDK for Android
22

3-
# Annotate Documents in Android Apps with REST API
3+
This repository contains GroupDocs.Annotation Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your Android applications on Java language.
44

5-
GroupDocs.Annotation Cloud SDK for Android wraps GroupDocs.Annotation RESTful APIs so you may integrate Document Annotation features in your own Java apps with zero initial cost. The solution helps in applying annotations, sticky notes, watermark overlays, redactions, text replacements and markups to documents, presentations, emails, spreadsheets, PDF, images other file formats.
5+
## Installation
66

7-
## Annotate Documents & Images in the Cloud
8-
9-
- Import document annotations.
10-
- Add or remove annotations.
11-
- Export annotated document back to its original format.
12-
- Preview document pages as images.
13-
- Fetch document information, such as, page count & file size.
14-
15-
Check out the [Developer's Guide](https://docs.groupdocs.cloud/annotation/developer-guide/) to know more about GroupDocs.Annotation REST API.
16-
17-
## Microsoft Office Formats
18-
19-
**Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF\
20-
**Microsoft Excel:** XLS, XLSX\
21-
**Microsoft PowerPoint:** PPT, PPTX, PPSX\
22-
**Microsoft Visio:** VSSX, VSS, VSSM, VDX, VSD, VSDX, VSDM, VSTM, VSX, VTX\
23-
**Microsoft Outlook:** EML, EMLX, MSG
24-
25-
## Other Document Formats
26-
27-
**Portable:** PDF\
28-
**OpenDocument:** ODT, OTT, ODP, OTP\
29-
**Images:** BMP, PNG, JPG, JPEG, TIFF, TIF, GIF\
30-
**Web:** MHTML\
31-
**Others:** TXT
32-
33-
## Get Started with GroupDocs.Annotation Cloud SDK for Android
34-
35-
First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, follow the installation steps to get started.
36-
37-
### Installation
38-
39-
Add Internet Permission in the AndroidManifest.xml. Example:
7+
Add Internet permission in the AndroidManifest.xml. Example:
408

419
```xml
4210
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>">
4311
<uses-permission android:name="android.permission.INTERNET" />
4412
...
4513
```
4614

47-
Add following repository and dependency to your android module's build.gradle after "apply plugin: 'com.android.application'" section:
15+
Add following repository and dependency to your android module's build.gradle
16+
after "apply plugin: 'com.android.application'" section:
4817

4918
```gradle
5019
repositories {
@@ -60,49 +29,53 @@ dependencies {
6029
}
6130
```
6231

63-
## Add Image Annotation to DOCX in the Cloud
32+
## Getting Started
33+
34+
Please follow the [installation](#installation) instruction and use the following Java code:
6435

6536
```java
66-
// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples
67-
// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
68-
String MyClientId = "";
69-
String MyClientSecret = "";
70-
71-
// Create instance of the API
72-
Configuration configuration = new Configuration(MyClientId, MyClientSecret);
73-
AnnotateApi apiInstance = new AnnotateApi(configuration);
74-
75-
// Create annotation/s.
76-
AnnotationInfo[] annotations = new AnnotationInfo[1];
77-
annotations[0] = new AnnotationInfo();
78-
79-
Rectangle r = new Rectangle();
80-
r.setX(100.0);
81-
r.setY(100.0);
82-
r.setWidth(200.0);
83-
r.setHeight(100.0);
84-
85-
annotations[0].setBox(r);
86-
annotations[0].setImagePath("Annotationdocs\\JohnSmith.png");
87-
annotations[0].setPageNumber(0);
88-
annotations[0].setType(TypeEnum.IMAGE);
89-
annotations[0].setText("This is image annotation");
90-
annotations[0].setCreatorName("Anonym A.");
91-
92-
// Create request object.
93-
PostAnnotationsRequest request = new PostAnnotationsRequest("Annotationdocs\\one-page.docx", Arrays.asList(annotations));
94-
95-
// Executing api method.
96-
apiInstance.postAnnotations(request);
97-
98-
System.out.println("AddImageAnnotation: image Annotation added.");
37+
import com.groupdocs.cloud.annotation.client.*;
38+
import com.groupdocs.cloud.annotation.model.*;
39+
import com.groupdocs.cloud.annotation.api.InfoApi;
40+
41+
42+
public class ApiExample {
43+
44+
public static void getSupportedFormats() {
45+
46+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
47+
String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
48+
String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
49+
50+
Configuration configuration = new Configuration(appSid, appKey);
51+
52+
InfoApi infoApi = new InfoApi(configuration);
53+
54+
try {
55+
FormatsResult response = infoApi.getSupportedFileFormats();
56+
for (Format format : response.getFormats()) {
57+
System.out.println(format.getFileFormat());
58+
}
59+
} catch (ApiException e) {
60+
System.err.println("Failed to get supported file formats");
61+
e.printStackTrace();
62+
}
63+
}
64+
}
9965
```
10066

101-
## GroupDocs.Annotation Cloud SDKs in Popular Languages
67+
## Licensing
68+
69+
All GroupDocs.Annotation Cloud SDKs are licensed under [MIT License](LICENSE).
70+
71+
## Resources
72+
73+
+ [**Website**](https://www.groupdocs.cloud)
74+
+ [**Product Home**](https://products.groupdocs.cloud/annotation)
75+
+ [**Documentation**](https://docs.groupdocs.cloud/annotation/)
76+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
77+
+ [**Blog**](https://blog.groupdocs.cloud/category/annotation)
10278

103-
| .NET | Java | PHP | Python | Ruby | Node.js | Android |
104-
|---|---|---|---|---|---|---|
105-
| [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-dotnet) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-php) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-python) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-ruby) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-node) | [GitHub](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android) |
106-
| [NuGet](https://www.nuget.org/packages/GroupDocs.Annotation-Cloud/) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-annotation-cloud) | [Composer](https://packagist.org/packages/groupdocscloud/groupdocs-annotation-cloud) | [PIP](https://pypi.org/project/groupdocs-annotation-cloud/) | [GEM](https://rubygems.org/gems/groupdocs_annotation_cloud) | [NPM](https://www.npmjs.com/package/groupdocs-annotation-cloud) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-annotation-cloud-android) |
79+
## Contact Us
10780

108-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/annotation) | [Documentation](https://docs.groupdocs.cloud/annotation/) | [Live Demo](https://products.groupdocs.app/annotation/total) | [API Reference](https://apireference.groupdocs.cloud/annotation/) | [Code Samples](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://dashboard.groupdocs.cloud)
81+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>groupdocs-annotation-cloud-android</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-annotation-cloud-android</name>
8-
<version>20.10</version>
8+
<version>21.2</version>
99
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-android</url>
1010
<description>Java library for communicating with the GroupDocs.Annotation Cloud API</description>
1111
<scm>

resources/input/input.docx

50.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)