Package net.webpdf.wsclient.openapi
Class OperationCompressSettings
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationCompressSettings
-
public class OperationCompressSettings extends Object
The `compress` element can be used to automatically compress the contents of the PDF document when saving it. Whenever the web service operation saves the PDF document, it should try to compress it according to the settings specified here. Document compression can also be triggered specifically via the 'compress' web service instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationCompressSettings.CompressProfileEnumSets the profile for automatic document compression and thus defines whether compression should be applied when saving
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMPRESS_OBJECTSstatic StringJSON_PROPERTY_COMPRESS_PROFILE
-
Constructor Summary
Constructors Constructor Description OperationCompressSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationCompressSettingscompressObjects(OperationCompressObjects compressObjects)OperationCompressSettingscompressProfile(OperationCompressSettings.CompressProfileEnum compressProfile)booleanequals(Object o)@Nullable OperationCompressObjectsgetCompressObjects()Get compressObjects@Nullable OperationCompressSettings.CompressProfileEnumgetCompressProfile()Sets the profile for automatic document compression and thus defines whether compression should be applied when savinginthashCode()voidsetCompressObjects(OperationCompressObjects compressObjects)voidsetCompressProfile(OperationCompressSettings.CompressProfileEnum compressProfile)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COMPRESS_OBJECTS
public static final String JSON_PROPERTY_COMPRESS_OBJECTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPRESS_PROFILE
public static final String JSON_PROPERTY_COMPRESS_PROFILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
compressObjects
public OperationCompressSettings compressObjects(OperationCompressObjects compressObjects)
-
getCompressObjects
@Nullable public @Nullable OperationCompressObjects getCompressObjects()
Get compressObjects- Returns:
- compressObjects
-
setCompressObjects
public void setCompressObjects(OperationCompressObjects compressObjects)
-
compressProfile
public OperationCompressSettings compressProfile(OperationCompressSettings.CompressProfileEnum compressProfile)
-
getCompressProfile
@Nullable public @Nullable OperationCompressSettings.CompressProfileEnum getCompressProfile()
Sets the profile for automatic document compression and thus defines whether compression should be applied when saving. * always = PDF documents should always be compressed when saved. * never = PDF documents should not be automatically compressed. * recompress = PDF documents should only be compressed automatically if they were already compressed previously.- Returns:
- compressProfile
-
setCompressProfile
public void setCompressProfile(OperationCompressSettings.CompressProfileEnum compressProfile)
-
-