Skip to content

Commit b7cba4b

Browse files
committed
Updated sources
1 parent 4adbd8b commit b7cba4b

219 files changed

Lines changed: 341 additions & 307 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.

README.md

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

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

5-
[GroupDocs.Conversion Cloud SDK for Android](https://products.groupdocs.cloud/conversion/android) wraps GroupDocs.Conversion RESTful APIs so you may integrate **Document Conversion** features in your own apps with zero initial cost.
5+
## Installation
66

7-
GroupDocs.Conversion Cloud API allows the developers to convert between 50+ file formats including Word documents, Excel spreadsheets, PowerPoint presentations, PDF, OpenDocument files, images & [more](https://docs.groupdocs.cloud/conversion/supported-document-formats/).
8-
9-
## Document Conversion REST API
10-
11-
- Convert the whole document to the desired target format.
12-
- Convert specific document page(s) or a page range.
13-
- Auto-detect source document format without requiring the file extension.
14-
- Load source document with extended options, such as specify password for password-protected documents.
15-
- Load specific part of the document.
16-
- Show or hide document comments.
17-
- Obtain all supported conversion formats list.
18-
- Replace missing fonts with any other font.
19-
- Add text or image watermarks to any page.
20-
- Specify resolution and quality for resultant images.
21-
- Extract metadata & basic information about the source document.
22-
- Integrated storage API.
23-
24-
Check out the [Developer's Guide](https://docs.groupdocs.cloud/conversion/developer-guide/) to know more about GroupDocs.Conversion REST API.
25-
26-
## Microsoft File Formats
27-
28-
**Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX\
29-
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM\
30-
**Microsoft PowerPoint:** PPT, PPTX, PPS, PPSX\
31-
**Microsoft Project:** MPP, MPT\
32-
**Microsoft Outlook:** MSG, EML\
33-
**Microsoft Visio:** VSD, VDX, VSS, VSX, VST, VTX, VSDX, VDW, VSSX, VSTX, VSDM, VSTM, VSSM\
34-
**Microsoft OneNote:** ONE
35-
36-
## Other Popular Formats
37-
38-
**Page Layout Formats:** PDF, XPS\
39-
**OpenDocument:** ODT, OTT, ODS, ODP, OTP, OTS, ODG\
40-
**CAD:** DXF, DWG, IFC, STL\
41-
**Images:** DCM, BMP, GIF, JPG, PNG, TIFF, WebP, DjVu, SVG, DNG, ICO\
42-
**Web:** HTML, MHT, MHTML\
43-
**Emails:** EML, EMLX\
44-
**eBooks:** EPUB, MOBI\
45-
**Metafile:** WMF, EMF\
46-
**LaTeX:** TEX\
47-
**Others:** TXT, RTF, CSV, TSV, XML
48-
49-
## Get Started with GroupDocs.Conversion Cloud SDK for Android
50-
51-
First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, follow the installation steps as given below.
52-
53-
### Installation
54-
55-
Add Internet Permission in the AndroidManifest.xml. Example:
7+
Add Internet permission in the AndroidManifest.xml. Example:
568

579
```xml
5810
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>">
@@ -73,45 +25,58 @@ repositories {
7325
...
7426
dependencies {
7527
...
76-
implementation 'com.groupdocs:groupdocs-conversion-cloud:20.11'
28+
implementation 'com.groupdocs:groupdocs-conversion-cloud:20.3'
7729
}
7830
```
7931

80-
## Add Watermark while Converting DOCX to PDF
32+
## Getting Started
33+
34+
Please follow the [installation](#installation) instruction and use the following Java code:
8135

8236
```java
83-
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples
84-
// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
85-
String MyClientId = "";
86-
String MyClientSecret = "";
87-
88-
// Create instance of the API
89-
Configuration configuration = new Configuration(MyClientId, MyClientSecret);
90-
ConvertApi apiInstance = new ConvertApi(configuration);
91-
92-
// Prepare convert settings
93-
ConvertSettings settings = new ConvertSettings();
94-
settings.setFilePath("WordProcessing/four-pages.docx");
95-
settings.setFormat("pdf");
96-
97-
WatermarkOptions watermark = new WatermarkOptions();
98-
watermark.setText("Sample watermark");
99-
watermark.setColor("Red");
100-
watermark.setWidth(100);
101-
watermark.setHeight(100);
102-
watermark.setBackground(true);
103-
104-
PdfConvertOptions convertOptions = new PdfConvertOptions();
105-
convertOptions.setWatermarkOptions(watermark);
106-
107-
List<StoredConvertedResult> result = apiInstance.convertDocument(new ConvertDocumentRequest(settings));
37+
import com.groupdocs.cloud.conversion.client.*;
38+
import com.groupdocs.cloud.conversion.model.*;
39+
import com.groupdocs.cloud.conversion.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+
}
65+
}
10866
```
10967

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

112-
| .NET | Java | PHP | Python | Ruby | Node.js | Android |
113-
|---|---|---|---|---|---|---|
114-
| [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-dotnet) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-php) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-python) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-android) |
115-
| [NuGet](https://www.nuget.org/packages/GroupDocs.Conversion-Cloud/) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-conversion-cloud) | [Composer](https://packagist.org/packages/groupdocscloud/groupdocs-conversion-cloud) | [PIP](https://pypi.org/project/groupdocs-conversion-cloud/) | [GEM](https://rubygems.org/gems/groupdocs_conversion_cloud) | [NPM](https://www.npmjs.com/package/groupdocs-conversion-cloud) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-conversion-cloud-android) |
80+
## Contact Us
11681

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

pom.xml

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

src/main/java/com/groupdocs/cloud/conversion/api/ConvertApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="ConvertApi.java">
4-
* Copyright (c) 2003-2018 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/api/FileApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FileApi.java">
4-
* Copyright (c) 2003-2018 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/api/FolderApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FolderApi.java">
4-
* Copyright (c) 2003-2018 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/api/InfoApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="InfoApi.java">
4-
* Copyright (c) 2003-2018 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/api/StorageApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="StorageApi.java">
4-
* Copyright (c) 2003-2018 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/client/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="ApiCallback.java">
4-
* Copyright (c) 2003-2020 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="ApiClient.java">
4-
* Copyright (c) 2003-2020 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -97,7 +97,7 @@ public ApiClient(Configuration configuration) {
9797
this.json = new JSON();
9898

9999
// Set default User-Agent.
100-
setUserAgent("java-sdk/20.11");
100+
setUserAgent("java-sdk/21.4");
101101

102102
// Set connection timeout
103103
setConnectTimeout(configuration.getTimeout());

src/main/java/com/groupdocs/cloud/conversion/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="ApiException.java">
4-
* Copyright (c) 2003-2020 Aspose Pty Ltd
4+
* Copyright (c) 2003-2021 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)