Skip to content

Commit a382d0f

Browse files
Merge pull request #5 from kaferi/master
Updated to v18.9
2 parents 3c73488 + 20b94dd commit a382d0f

25 files changed

+7750
-3061
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.8.0</version>
37+
<version>18.9.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.8.0"
47+
compile "com.aspose:aspose-cloud-pdf:18.9.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.8.0.jar
58+
* target/aspose-cloud-pdf-18.9.0.jar
5959
* target/lib/*.jar
6060

6161
## Getting Started

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.8.0'
23+
version = '18.9.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.8.0'
74+
publishVersion = '18.9.0'
7575
desc = 'Aspose.PDF 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 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 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: 5151 additions & 2939 deletions
Large diffs are not rendered by default.

src/main/java/com/aspose/asposecloudpdf/model/Annotation.java

Lines changed: 196 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
package com.aspose.asposecloudpdf.model;
2424

2525
import java.util.Objects;
26-
import com.aspose.asposecloudpdf.model.Color;
26+
import com.aspose.asposecloudpdf.model.AnnotationFlags;
27+
import com.aspose.asposecloudpdf.model.HorizontalAlignment;
2728
import com.aspose.asposecloudpdf.model.Link;
2829
import com.aspose.asposecloudpdf.model.LinkElement;
30+
import com.aspose.asposecloudpdf.model.RectanglePdf;
31+
import com.aspose.asposecloudpdf.model.VerticalAlignment;
2932
import com.google.gson.TypeAdapter;
3033
import com.google.gson.annotations.JsonAdapter;
3134
import com.google.gson.annotations.SerializedName;
@@ -34,6 +37,7 @@
3437
import io.swagger.annotations.ApiModel;
3538
import io.swagger.annotations.ApiModelProperty;
3639
import java.io.IOException;
40+
import java.util.ArrayList;
3741
import java.util.List;
3842

3943
/**
@@ -42,9 +46,6 @@
4246
@ApiModel(description = "Provides annotation.")
4347

4448
public class Annotation extends LinkElement {
45-
@SerializedName("Color")
46-
private Color color = null;
47-
4849
@SerializedName("Contents")
4950
private String contents = null;
5051

@@ -60,23 +61,29 @@ public class Annotation extends LinkElement {
6061
@SerializedName("Modified")
6162
private String modified = null;
6263

63-
public Annotation color(Color color) {
64-
this.color = color;
65-
return this;
66-
}
64+
@SerializedName("Id")
65+
private String id = null;
6766

68-
/**
69-
* Get the annotation color.
70-
* @return color
71-
**/
72-
@ApiModelProperty(value = "Get the annotation color.")
73-
public Color getColor() {
74-
return color;
75-
}
67+
@SerializedName("Flags")
68+
private List<AnnotationFlags> flags = null;
7669

77-
public void setColor(Color color) {
78-
this.color = color;
79-
}
70+
@SerializedName("Name")
71+
private String name = null;
72+
73+
@SerializedName("Rect")
74+
private RectanglePdf rect = null;
75+
76+
@SerializedName("PageIndex")
77+
private Integer pageIndex = null;
78+
79+
@SerializedName("ZIndex")
80+
private Integer zindex = null;
81+
82+
@SerializedName("HorizontalAlignment")
83+
private HorizontalAlignment horizontalAlignment = null;
84+
85+
@SerializedName("VerticalAlignment")
86+
private VerticalAlignment verticalAlignment = null;
8087

8188
public Annotation contents(String contents) {
8289
this.contents = contents;
@@ -168,6 +175,158 @@ public void setModified(String modified) {
168175
this.modified = modified;
169176
}
170177

178+
public Annotation id(String id) {
179+
this.id = id;
180+
return this;
181+
}
182+
183+
/**
184+
* Gets ID of the annotation.
185+
* @return id
186+
**/
187+
@ApiModelProperty(value = "Gets ID of the annotation.")
188+
public String getId() {
189+
return id;
190+
}
191+
192+
public void setId(String id) {
193+
this.id = id;
194+
}
195+
196+
public Annotation flags(List<AnnotationFlags> flags) {
197+
this.flags = flags;
198+
return this;
199+
}
200+
201+
public Annotation addFlagsItem(AnnotationFlags flagsItem) {
202+
if (this.flags == null) {
203+
this.flags = new ArrayList<AnnotationFlags>();
204+
}
205+
this.flags.add(flagsItem);
206+
return this;
207+
}
208+
209+
/**
210+
* Gets Flags of the annotation.
211+
* @return flags
212+
**/
213+
@ApiModelProperty(value = "Gets Flags of the annotation.")
214+
public List<AnnotationFlags> getFlags() {
215+
return flags;
216+
}
217+
218+
public void setFlags(List<AnnotationFlags> flags) {
219+
this.flags = flags;
220+
}
221+
222+
public Annotation name(String name) {
223+
this.name = name;
224+
return this;
225+
}
226+
227+
/**
228+
* Gets Name of the annotation.
229+
* @return name
230+
**/
231+
@ApiModelProperty(value = "Gets Name of the annotation.")
232+
public String getName() {
233+
return name;
234+
}
235+
236+
public void setName(String name) {
237+
this.name = name;
238+
}
239+
240+
public Annotation rect(RectanglePdf rect) {
241+
this.rect = rect;
242+
return this;
243+
}
244+
245+
/**
246+
* Gets Rect of the annotation.
247+
* @return rect
248+
**/
249+
@ApiModelProperty(value = "Gets Rect of the annotation.")
250+
public RectanglePdf getRect() {
251+
return rect;
252+
}
253+
254+
public void setRect(RectanglePdf rect) {
255+
this.rect = rect;
256+
}
257+
258+
public Annotation pageIndex(Integer pageIndex) {
259+
this.pageIndex = pageIndex;
260+
return this;
261+
}
262+
263+
/**
264+
* Gets PageIndex of the annotation.
265+
* @return pageIndex
266+
**/
267+
@ApiModelProperty(value = "Gets PageIndex of the annotation.")
268+
public Integer getPageIndex() {
269+
return pageIndex;
270+
}
271+
272+
public void setPageIndex(Integer pageIndex) {
273+
this.pageIndex = pageIndex;
274+
}
275+
276+
public Annotation zindex(Integer zindex) {
277+
this.zindex = zindex;
278+
return this;
279+
}
280+
281+
/**
282+
* Gets ZIndex of the annotation.
283+
* @return zindex
284+
**/
285+
@ApiModelProperty(value = "Gets ZIndex of the annotation.")
286+
public Integer getZindex() {
287+
return zindex;
288+
}
289+
290+
public void setZindex(Integer zindex) {
291+
this.zindex = zindex;
292+
}
293+
294+
public Annotation horizontalAlignment(HorizontalAlignment horizontalAlignment) {
295+
this.horizontalAlignment = horizontalAlignment;
296+
return this;
297+
}
298+
299+
/**
300+
* Gets HorizontalAlignment of the annotation.
301+
* @return horizontalAlignment
302+
**/
303+
@ApiModelProperty(value = "Gets HorizontalAlignment of the annotation.")
304+
public HorizontalAlignment getHorizontalAlignment() {
305+
return horizontalAlignment;
306+
}
307+
308+
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment) {
309+
this.horizontalAlignment = horizontalAlignment;
310+
}
311+
312+
public Annotation verticalAlignment(VerticalAlignment verticalAlignment) {
313+
this.verticalAlignment = verticalAlignment;
314+
return this;
315+
}
316+
317+
/**
318+
* Gets VerticalAlignment of the annotation.
319+
* @return verticalAlignment
320+
**/
321+
@ApiModelProperty(value = "Gets VerticalAlignment of the annotation.")
322+
public VerticalAlignment getVerticalAlignment() {
323+
return verticalAlignment;
324+
}
325+
326+
public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
327+
this.verticalAlignment = verticalAlignment;
328+
}
329+
171330

172331
@Override
173332
public boolean equals(java.lang.Object o) {
@@ -178,18 +337,25 @@ public boolean equals(java.lang.Object o) {
178337
return false;
179338
}
180339
Annotation annotation = (Annotation) o;
181-
return Objects.equals(this.color, annotation.color) &&
182-
Objects.equals(this.contents, annotation.contents) &&
340+
return Objects.equals(this.contents, annotation.contents) &&
183341
Objects.equals(this.creationDate, annotation.creationDate) &&
184342
Objects.equals(this.subject, annotation.subject) &&
185343
Objects.equals(this.title, annotation.title) &&
186344
Objects.equals(this.modified, annotation.modified) &&
345+
Objects.equals(this.id, annotation.id) &&
346+
Objects.equals(this.flags, annotation.flags) &&
347+
Objects.equals(this.name, annotation.name) &&
348+
Objects.equals(this.rect, annotation.rect) &&
349+
Objects.equals(this.pageIndex, annotation.pageIndex) &&
350+
Objects.equals(this.zindex, annotation.zindex) &&
351+
Objects.equals(this.horizontalAlignment, annotation.horizontalAlignment) &&
352+
Objects.equals(this.verticalAlignment, annotation.verticalAlignment) &&
187353
super.equals(o);
188354
}
189355

190356
@Override
191357
public int hashCode() {
192-
return Objects.hash(color, contents, creationDate, subject, title, modified, super.hashCode());
358+
return Objects.hash(contents, creationDate, subject, title, modified, id, flags, name, rect, pageIndex, zindex, horizontalAlignment, verticalAlignment, super.hashCode());
193359
}
194360

195361

@@ -198,12 +364,19 @@ public String toString() {
198364
StringBuilder sb = new StringBuilder();
199365
sb.append("class Annotation {\n");
200366
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
201-
sb.append(" color: ").append(toIndentedString(color)).append("\n");
202367
sb.append(" contents: ").append(toIndentedString(contents)).append("\n");
203368
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
204369
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
205370
sb.append(" title: ").append(toIndentedString(title)).append("\n");
206371
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
372+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
373+
sb.append(" flags: ").append(toIndentedString(flags)).append("\n");
374+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
375+
sb.append(" rect: ").append(toIndentedString(rect)).append("\n");
376+
sb.append(" pageIndex: ").append(toIndentedString(pageIndex)).append("\n");
377+
sb.append(" zindex: ").append(toIndentedString(zindex)).append("\n");
378+
sb.append(" horizontalAlignment: ").append(toIndentedString(horizontalAlignment)).append("\n");
379+
sb.append(" verticalAlignment: ").append(toIndentedString(verticalAlignment)).append("\n");
207380
sb.append("}");
208381
return sb.toString();
209382
}

0 commit comments

Comments
 (0)