Skip to content

Commit d664fb7

Browse files
committed
Updated sources
1 parent 1c1498d commit d664fb7

File tree

220 files changed

+353
-303
lines changed

Some content is hidden

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

220 files changed

+353
-303
lines changed

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-2018 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: 61 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,30 @@
1-
![](https://img.shields.io/badge/api-v2.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java)](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java/blob/master/LICENSE)
1+
# GroupDocs.Conversion Cloud SDK for Java
22

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

5-
[GroupDocs.Conversion Cloud SDK for Java](https://products.groupdocs.cloud/conversion/java) wraps GroupDocs.Conversion RESTful APIs so you may integrate **Document Conversion** features in your own apps with zero initial cost.
6-
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.
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 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 Java
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-
### Requirements
5+
## Requirements
546

557
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
568

57-
### Installation
9+
## Installation
5810

59-
Simply execute the following to install the API client library to your local Maven repository.
11+
To install the API client library to your local Maven repository, simply execute:
6012

6113
```shell
6214
mvn install
6315
```
6416

65-
Configure the settings of the repository and execute the following to deploy it to a remote Maven repository instead.
17+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
6618

6719
```shell
6820
mvn deploy
6921
```
7022

7123
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
7224

73-
#### Maven
25+
### Maven users
7426

75-
Add following repository and dependency to your project's POM.
27+
Add following repository and dependency to your project's POM
7628

7729
```xml
7830
<repository>
@@ -86,43 +38,72 @@ Add following repository and dependency to your project's POM.
8638
<dependency>
8739
<groupId>com.groupdocs</groupId>
8840
<artifactId>groupdocs-conversion-cloud</artifactId>
89-
<version>20.11</version>
41+
<version>21.4</version>
9042
<scope>compile</scope>
9143
</dependency>
9244
```
9345

94-
#### Others
46+
### Others
47+
48+
At first generate the JAR by executing:
9549

96-
First generate the JAR by executing `mvn package`, then manually install the following JARs.
50+
mvn package
9751

98-
* target/groupdocs-conversion-cloud-20.11.jar
52+
Then manually install the following JARs:
53+
54+
* target/groupdocs-conversion-cloud-21.4.jar
9955
* target/lib/*.jar
10056

101-
## Convert DOCX to PDF in the Cloud
57+
## Getting Started
58+
59+
Please follow the [installation](#installation) instruction and execute the following Java code:
10260

10361
```java
104-
// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
105-
String MyClientId = "";
106-
String MyClientSecret = "";
62+
import com.groupdocs.cloud.conversion.client.*;
63+
import com.groupdocs.cloud.conversion.model.*;
64+
import com.groupdocs.cloud.conversion.model.requests.*;
65+
import com.groupdocs.cloud.conversion.api.InfoApi;
66+
67+
import java.util.*;
68+
69+
public class ApiExample {
70+
71+
public static void main(String[] args) {
72+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
73+
String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
74+
String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
75+
76+
Configuration configuration = new Configuration(appSid, appKey);
77+
78+
InfoApi api = new InfoApi(configuration);
79+
80+
try {
81+
GetSupportedCibversionTypesRequest request = new GetSupportedConversionTypesRequest();
82+
List<SupportedFormat> response = api.getSupportedConversionTypes(request);
83+
84+
for (SupportedFormat format : response) {
85+
System.out.println(format.getSourceFormat());
86+
}
87+
} catch (ApiException e) {
88+
System.err.println("Exception when calling FileApi#copyFile");
89+
e.printStackTrace();
90+
}
91+
}
92+
}
93+
```
10794

108-
// Create instance of the API
109-
Configuration configuration = new Configuration(MyClientId, MyClientSecret);
110-
ConvertApi apiInstance = new ConvertApi(configuration);
95+
## Licensing
11196

112-
// Prepare convert settings
113-
ConvertSettings settings = new ConvertSettings();
114-
settings.setFilePath("WordProcessing/four-pages.docx");
115-
settings.setFormat("pdf");
116-
settings.setOutputPath("converted");
97+
All GroupDocs.Conversion Cloud SDKs are licensed under [MIT License](LICENSE).
11798

118-
List<StoredConvertedResult> result = apiInstance.convertDocument(new ConvertDocumentRequest(settings));
119-
```
99+
## Resources
120100

121-
## GroupDocs.Conversion Cloud SDKs in Popular Languages
101+
+[**Website**](https://www.groupdocs.cloud)
102+
+[**Product Home**](https://products.groupdocs.cloud/conversion)
103+
+[**Documentation**](https://docs.groupdocs.cloud/conversion)
104+
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
105+
+[**Blog**](https://blog.groupdocs.cloud/category/conversion)
122106

123-
| .NET | Java | PHP | Python | Ruby | Node.js | Android |
124-
|---|---|---|---|---|---|---|
125-
| [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) |
126-
| [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) | |
107+
## Contact Us
127108

128-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/conversion/java) | [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)
109+
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</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-conversion-cloud</name>
8-
<version>20.11</version>
8+
<version>21.4</version>
99
<url>https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java</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());

0 commit comments

Comments
 (0)