Skip to content

Commit 9b8f46b

Browse files
Merge pull request #2 from kaferi/master
Updated to 18.6
2 parents d1c5a9a + 882a1bf commit 9b8f46b

File tree

10 files changed

+6972
-2978
lines changed

10 files changed

+6972
-2978
lines changed

.swagger-codegen-ignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ docs/*.*
2525
src/main/java/com/aspose/asposecloudpdf/auth/*.*
2626
.gitignore
2727
git_push.sh
28-
README.md
29-
28+
#README.md
29+
pom.xml

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Aspose.Pdf for Cloud
2-
[Aspose.Pdf for Cloud](https://products.aspose.cloud/pdf/cloud) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
1+
# Aspose.PDF Cloud
2+
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf/cloud) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.
33

4-
Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.Pdf for Cloud and examples.
4+
Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.PDF Cloud and examples.
55

66
These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).
77

@@ -34,7 +34,7 @@ Add this dependency to your project's POM:
3434
<dependency>
3535
<groupId>com.aspose</groupId>
3636
<artifactId>aspose-cloud-pdf</artifactId>
37-
<version>18.5.0</version>
37+
<version>18.6.0</version>
3838
<scope>compile</scope>
3939
</dependency>
4040
```
@@ -44,7 +44,7 @@ Add this dependency to your project's POM:
4444
Add this dependency to your project's build file:
4545

4646
```groovy
47-
compile "com.aspose:aspose-cloud-pdf:18.5.0"
47+
compile "com.aspose:aspose-cloud-pdf:18.6.0"
4848
```
4949

5050
### Others
@@ -55,7 +55,7 @@ At first generate the JAR by executing:
5555

5656
Then manually install the following JARs:
5757

58-
* target/aspose-cloud-pdf-18.5.0.jar
58+
* target/aspose-cloud-pdf-18.6.0.jar
5959
* target/lib/*.jar
6060

6161
## Getting Started
@@ -93,10 +93,10 @@ public class PdfApiExample {
9393
```
9494

9595
## Unit Tests
96-
Aspose PDF SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
96+
Aspose PDF Cloud SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF Cloud SDK.
9797

9898
## Licensing
99-
All Aspose.Pdf for Cloud SDKs are licensed under [MIT License](LICENSE).
99+
All Aspose.PDF Cloud SDKs are licensed under [MIT License](LICENSE).
100100

101101
## Resources
102102
+ [**Website**](https://www.aspose.cloud)

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ apply plugin: 'idea'
2020
apply plugin: 'eclipse'
2121

2222
group = 'com.aspose'
23-
version = '18.5.0'
23+
version = '18.6.0'
2424

2525
buildscript {
2626
repositories {
@@ -71,7 +71,7 @@ dependencies {
7171
publish {
7272
groupId = 'com.aspose'
7373
artifactId = 'aspose-cloud-pdf'
74-
publishVersion = '18.5.0'
74+
publishVersion = '18.6.0'
7575
desc = 'Aspose.PDF for Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.Pdf for Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.Pdf for Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.'
7676
licences = ['MIT']
7777
website = 'https://products.aspose.cloud/pdf/cloud'

src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java

Lines changed: 5882 additions & 2964 deletions
Large diffs are not rendered by default.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.Pdf for Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
22+
23+
package com.aspose.asposecloudpdf.model;
24+
25+
import java.util.Objects;
26+
import io.swagger.annotations.ApiModel;
27+
import com.google.gson.annotations.SerializedName;
28+
29+
import java.io.IOException;
30+
import com.google.gson.TypeAdapter;
31+
import com.google.gson.annotations.JsonAdapter;
32+
import com.google.gson.stream.JsonReader;
33+
import com.google.gson.stream.JsonWriter;
34+
35+
/**
36+
* Allows to specify image file format.
37+
*/
38+
@JsonAdapter(ImageSrcType.Adapter.class)
39+
public enum ImageSrcType {
40+
41+
COMMON("Common"),
42+
43+
EMF("Emf");
44+
45+
private String value;
46+
47+
ImageSrcType(String value) {
48+
this.value = value;
49+
}
50+
51+
public String getValue() {
52+
return value;
53+
}
54+
55+
@Override
56+
public String toString() {
57+
return String.valueOf(value);
58+
}
59+
60+
public static ImageSrcType fromValue(String text) {
61+
for (ImageSrcType b : ImageSrcType.values()) {
62+
if (String.valueOf(b.value).equals(text)) {
63+
return b;
64+
}
65+
}
66+
return null;
67+
}
68+
69+
public static class Adapter extends TypeAdapter<ImageSrcType> {
70+
@Override
71+
public void write(final JsonWriter jsonWriter, final ImageSrcType enumeration) throws IOException {
72+
jsonWriter.value(enumeration.getValue());
73+
}
74+
75+
@Override
76+
public ImageSrcType read(final JsonReader jsonReader) throws IOException {
77+
String value = jsonReader.nextString();
78+
return ImageSrcType.fromValue(String.valueOf(value));
79+
}
80+
}
81+
}
82+

0 commit comments

Comments
 (0)