Skip to content

Commit

Permalink
Updated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
product-team committed Nov 7, 2024
1 parent 7be202f commit 1af864e
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add following repository and dependency to your project's POM
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-conversion-cloud</artifactId>
<version>24.8</version>
<version>24.11</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -43,7 +43,7 @@ repositories {
...
dependencies {
...
implementation 'com.groupdocs:groupdocs-conversion-cloud:24.8'
implementation 'com.groupdocs:groupdocs-conversion-cloud:24.11'
}
```

Expand Down Expand Up @@ -100,7 +100,7 @@ mvn package -D maven.test.skip=true

Then manually install the following JARs:

* target/groupdocs-conversion-cloud-24.8.jar
* target/groupdocs-conversion-cloud-24.11.jar
* target/lib/*.jar

## Licensing
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>groupdocs-conversion-cloud</artifactId>
<packaging>jar</packaging>
<name>groupdocs-conversion-cloud</name>
<version>24.8</version>
<version>24.11</version>
<url>https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java</url>
<description>Java library for communicating with the GroupDocs.Conversion Cloud API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion simplified-pom.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-conversion-cloud</artifactId>
<version>24.8</version>
<version>24.11</version>
<packaging>jar</packaging>

<name>groupdocs-conversion-cloud</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public ApiClient(Configuration configuration) {
this.json = new JSON();

// Set default User-Agent.
setUserAgent("java-sdk/24.8");
setUserAgent("java-sdk/24.11");

// Set connection timeout
setConnectTimeout(configuration.getTimeout());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,62 @@ public class WebLoadOptions extends LoadOptions {
@SerializedName("pageNumbering")
private Boolean pageNumbering = null;

@SerializedName("encoding")
private String encoding = null;

@SerializedName("usePdf")
private Boolean usePdf = null;

/**
* Controls how HTML content is rendered. Default: AbsolutePositioning
*/
@JsonAdapter(RenderingModeEnum.Adapter.class)
public enum RenderingModeEnum {
FLOW("Flow"),

ABSOLUTEPOSITIONING("AbsolutePositioning");

private String value;

RenderingModeEnum(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static RenderingModeEnum fromValue(String text) {
for (RenderingModeEnum b : RenderingModeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}

public static class Adapter extends TypeAdapter<RenderingModeEnum> {
@Override
public void write(final JsonWriter jsonWriter, final RenderingModeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public RenderingModeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return RenderingModeEnum.fromValue(String.valueOf(value));
}
}
}

@SerializedName("renderingMode")
private RenderingModeEnum renderingMode = null;

public WebLoadOptions pageNumbering(Boolean pageNumbering) {
this.pageNumbering = pageNumbering;
return this;
Expand All @@ -64,6 +120,60 @@ public void setPageNumbering(Boolean pageNumbering) {
this.pageNumbering = pageNumbering;
}

public WebLoadOptions encoding(String encoding) {
this.encoding = encoding;
return this;
}

/**
* Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
* @return encoding
**/
@ApiModelProperty(value = "Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute")
public String getEncoding() {
return encoding;
}

public void setEncoding(String encoding) {
this.encoding = encoding;
}

public WebLoadOptions usePdf(Boolean usePdf) {
this.usePdf = usePdf;
return this;
}

/**
* Use pdf for the conversion. Default: false
* @return usePdf
**/
@ApiModelProperty(required = true, value = "Use pdf for the conversion. Default: false")
public Boolean getUsePdf() {
return usePdf;
}

public void setUsePdf(Boolean usePdf) {
this.usePdf = usePdf;
}

public WebLoadOptions renderingMode(RenderingModeEnum renderingMode) {
this.renderingMode = renderingMode;
return this;
}

/**
* Controls how HTML content is rendered. Default: AbsolutePositioning
* @return renderingMode
**/
@ApiModelProperty(required = true, value = "Controls how HTML content is rendered. Default: AbsolutePositioning")
public RenderingModeEnum getRenderingMode() {
return renderingMode;
}

public void setRenderingMode(RenderingModeEnum renderingMode) {
this.renderingMode = renderingMode;
}


@Override
public boolean equals(java.lang.Object o) {
Expand All @@ -75,12 +185,15 @@ public boolean equals(java.lang.Object o) {
}
WebLoadOptions webLoadOptions = (WebLoadOptions) o;
return Objects.equals(this.pageNumbering, webLoadOptions.pageNumbering) &&
Objects.equals(this.encoding, webLoadOptions.encoding) &&
Objects.equals(this.usePdf, webLoadOptions.usePdf) &&
Objects.equals(this.renderingMode, webLoadOptions.renderingMode) &&
super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(pageNumbering, super.hashCode());
return Objects.hash(pageNumbering, encoding, usePdf, renderingMode, super.hashCode());
}


Expand All @@ -90,6 +203,9 @@ public String toString() {
sb.append("class WebLoadOptions {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" pageNumbering: ").append(toIndentedString(pageNumbering)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
sb.append(" usePdf: ").append(toIndentedString(usePdf)).append("\n");
sb.append(" renderingMode: ").append(toIndentedString(renderingMode)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down

0 comments on commit 1af864e

Please sign in to comment.