From 1af864e4eea2a773e5ccbb06f38bbef0e4b6c4f1 Mon Sep 17 00:00:00 2001 From: product-team Date: Thu, 7 Nov 2024 01:45:24 -0600 Subject: [PATCH] Updated sources --- README.md | 6 +- pom.xml | 2 +- simplified-pom.template | 2 +- .../cloud/conversion/client/ApiClient.java | 2 +- .../conversion/model/WebLoadOptions.java | 118 +++++++++++++++++- 5 files changed, 123 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 56bbd36..b2117f7 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Add following repository and dependency to your project's POM com.groupdocs groupdocs-conversion-cloud - 24.8 + 24.11 compile ``` @@ -43,7 +43,7 @@ repositories { ... dependencies { ... - implementation 'com.groupdocs:groupdocs-conversion-cloud:24.8' + implementation 'com.groupdocs:groupdocs-conversion-cloud:24.11' } ``` @@ -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 diff --git a/pom.xml b/pom.xml index b2cab28..0bbca7f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ groupdocs-conversion-cloud jar groupdocs-conversion-cloud - 24.8 + 24.11 https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java Java library for communicating with the GroupDocs.Conversion Cloud API diff --git a/simplified-pom.template b/simplified-pom.template index cbf3277..f7ccc78 100644 --- a/simplified-pom.template +++ b/simplified-pom.template @@ -5,7 +5,7 @@ com.groupdocs groupdocs-conversion-cloud - 24.8 + 24.11 jar groupdocs-conversion-cloud diff --git a/src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java b/src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java index 0f38a50..877e72f 100644 --- a/src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java +++ b/src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java @@ -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()); diff --git a/src/main/java/com/groupdocs/cloud/conversion/model/WebLoadOptions.java b/src/main/java/com/groupdocs/cloud/conversion/model/WebLoadOptions.java index 694cf38..cb87adf 100644 --- a/src/main/java/com/groupdocs/cloud/conversion/model/WebLoadOptions.java +++ b/src/main/java/com/groupdocs/cloud/conversion/model/WebLoadOptions.java @@ -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 { + @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; @@ -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) { @@ -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()); } @@ -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(); }