public class ConvertDocumentOutputSettings
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CONVERTED_PAGES_FOR_HTML_OUTPUT |
static int |
DEFAULT_MAX_CONVERTED_PAGES_FOR_XML_OUTPUT |
static int |
DEFAULT_MAX_SIZE_K_B |
int |
maxConvertedPagesForHtmlOutput |
int |
maxConvertedPagesForXmlOutput |
int |
maxSizeKB |
Constructor and Description |
---|
ConvertDocumentOutputSettings() |
ConvertDocumentOutputSettings(ConvertDocumentOutputSettings o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ConvertDocumentOutputSettings.
|
static ConvertDocumentOutputSettings |
fromString(java.lang.String s)
String representation of this ConvertDocumentOutputSettings.
|
int |
getMaxConvertedPagesForHtmlOutput()
Default maximum number of document pages to be converted into html.
The default is -1 which means no limit. The definition of a page is tightly linked to document type: (pdf page, doc page, etc) Note: This setting defines the process default value, which can be overridden for each conversion command. |
int |
getMaxConvertedPagesForXmlOutput()
Default maximum number of document pages to be converted into xml.
The default is -1 which means no limit. The definition of a page is tightly linked to document type: (pdf page, doc page, etc) Note: This setting defines the process default value, which can be overridden for each conversion command. |
int |
getMaxSizeKB()
Default maximum size in bytes for converted documents.
The default is -1 which means no limit. Note: This setting defines the process default value, which can be overridden for each conversion command. |
ConvertDocumentOutputSettings |
makeCopy()
Creates and returns a deep copy of this ConvertDocumentOutputSettings.
|
static ConvertDocumentOutputSettings |
readFrom(java.io.InputStream is)
Read this ConvertDocumentOutputSettings from an XML fragment.
|
void |
setMaxConvertedPagesForHtmlOutput(int maxConvertedPagesForHtmlOutput)
Default maximum number of document pages to be converted into html.
The default is -1 which means no limit. The definition of a page is tightly linked to document type: (pdf page, doc page, etc) Note: This setting defines the process default value, which can be overridden for each conversion command. |
void |
setMaxConvertedPagesForXmlOutput(int maxConvertedPagesForXmlOutput)
Default maximum number of document pages to be converted into xml.
The default is -1 which means no limit. The definition of a page is tightly linked to document type: (pdf page, doc page, etc) Note: This setting defines the process default value, which can be overridden for each conversion command. |
void |
setMaxSizeKB(int maxSizeKB)
Default maximum size in bytes for converted documents.
The default is -1 which means no limit. Note: This setting defines the process default value, which can be overridden for each conversion command. |
java.lang.String |
toString()
String representation of this ConvertDocumentOutputSettings.
|
ConvertDocumentOutputSettings |
withMaxConvertedPagesForHtmlOutput(int maxConvertedPagesForHtmlOutput) |
ConvertDocumentOutputSettings |
withMaxConvertedPagesForHtmlOutput(java.lang.Integer maxConvertedPagesForHtmlOutput) |
ConvertDocumentOutputSettings |
withMaxConvertedPagesForXmlOutput(int maxConvertedPagesForXmlOutput) |
ConvertDocumentOutputSettings |
withMaxConvertedPagesForXmlOutput(java.lang.Integer maxConvertedPagesForXmlOutput) |
ConvertDocumentOutputSettings |
withMaxSizeKB(int maxSizeKB) |
ConvertDocumentOutputSettings |
withMaxSizeKB(java.lang.Integer maxSizeKB) |
void |
writeTo(java.io.OutputStream os)
Write this ConvertDocumentOutputSettings as an XML fragment
|
public int maxSizeKB
public static final int DEFAULT_MAX_SIZE_K_B
public int maxConvertedPagesForXmlOutput
public static final int DEFAULT_MAX_CONVERTED_PAGES_FOR_XML_OUTPUT
public int maxConvertedPagesForHtmlOutput
public static final int DEFAULT_MAX_CONVERTED_PAGES_FOR_HTML_OUTPUT
public ConvertDocumentOutputSettings()
public ConvertDocumentOutputSettings(ConvertDocumentOutputSettings o)
public void setMaxSizeKB(int maxSizeKB)
public int getMaxSizeKB()
public ConvertDocumentOutputSettings withMaxSizeKB(int maxSizeKB)
public ConvertDocumentOutputSettings withMaxSizeKB(java.lang.Integer maxSizeKB)
public void setMaxConvertedPagesForXmlOutput(int maxConvertedPagesForXmlOutput)
public int getMaxConvertedPagesForXmlOutput()
public ConvertDocumentOutputSettings withMaxConvertedPagesForXmlOutput(int maxConvertedPagesForXmlOutput)
public ConvertDocumentOutputSettings withMaxConvertedPagesForXmlOutput(java.lang.Integer maxConvertedPagesForXmlOutput)
public void setMaxConvertedPagesForHtmlOutput(int maxConvertedPagesForHtmlOutput)
public int getMaxConvertedPagesForHtmlOutput()
public ConvertDocumentOutputSettings withMaxConvertedPagesForHtmlOutput(int maxConvertedPagesForHtmlOutput)
public ConvertDocumentOutputSettings withMaxConvertedPagesForHtmlOutput(java.lang.Integer maxConvertedPagesForHtmlOutput)
public ConvertDocumentOutputSettings makeCopy()
public static ConvertDocumentOutputSettings readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static ConvertDocumentOutputSettings fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.