Class SizeOptimizationType
- java.lang.Object
-
- net.webpdf.wsclient.schema.operation.SizeOptimizationType
-
public class SizeOptimizationType extends Object
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If you use a JPEG "image type element," the file size can be automatically optimized. The corresponding optimization routine will attempt to limit the file to a max. size by gradually reducing the JPEG quality until the image is smaller than a specific size. If the "sizeOptimization" block is present, the image will be optimized. If it is not present, the image will not be optimized further after being exported. </p><?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Important:</b> Please note that optimization can make the graphic export operation significantly slower. In addition to this, make sure to use values for the "dpi", "height", and "width" parameters that ensure that the size you want can actually be reached with compression. </p>Java class for SizeOptimizationType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SizeOptimizationType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="maxSize" type="{http://www.w3.org/2001/XMLSchema}int" default="100000" /> <attribute name="maxRetries" type="{http://www.w3.org/2001/XMLSchema}int" default="5" /> <attribute name="stepSize" type="{http://www.w3.org/2001/XMLSchema}int" default="10" /> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description SizeOptimizationType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxRetries()Gets the value of the maxRetries property.intgetMaxSize()Gets the value of the maxSize property.intgetStepSize()Gets the value of the stepSize property.booleanisSetMaxRetries()booleanisSetMaxSize()booleanisSetStepSize()voidsetMaxRetries(int value)Sets the value of the maxRetries property.voidsetMaxSize(int value)Sets the value of the maxSize property.voidsetStepSize(int value)Sets the value of the stepSize property.voidunsetMaxRetries()voidunsetMaxSize()voidunsetStepSize()
-
-
-
Method Detail
-
getMaxSize
public int getMaxSize()
Gets the value of the maxSize property.- Returns:
- possible object is
Integer
-
setMaxSize
public void setMaxSize(int value)
Sets the value of the maxSize property.- Parameters:
value- allowed object isInteger
-
isSetMaxSize
public boolean isSetMaxSize()
-
unsetMaxSize
public void unsetMaxSize()
-
getMaxRetries
public int getMaxRetries()
Gets the value of the maxRetries property.- Returns:
- possible object is
Integer
-
setMaxRetries
public void setMaxRetries(int value)
Sets the value of the maxRetries property.- Parameters:
value- allowed object isInteger
-
isSetMaxRetries
public boolean isSetMaxRetries()
-
unsetMaxRetries
public void unsetMaxRetries()
-
getStepSize
public int getStepSize()
Gets the value of the stepSize property.- Returns:
- possible object is
Integer
-
setStepSize
public void setStepSize(int value)
Sets the value of the stepSize property.- Parameters:
value- allowed object isInteger
-
isSetStepSize
public boolean isSetStepSize()
-
unsetStepSize
public void unsetStepSize()
-
-