Package net.webpdf.wsclient.openapi
Class OperationSvgFormat
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationSvgFormat
-
public class OperationSvgFormat extends Object
Selects parameters for the creation of SVGs, possibly contained in resulting documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationSvgFormat.GraphicsStateModeEnumSelects the SVG syntax used for formatting graphics statesstatic classOperationSvgFormat.PathDrawModeEnumSelects the SVG syntax used for formatting paths
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DECIMAL_PRECISIONstatic StringJSON_PROPERTY_GRAPHICS_STATE_MODEstatic StringJSON_PROPERTY_PATH_DRAW_MODE
-
Constructor Summary
Constructors Constructor Description OperationSvgFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationSvgFormatdecimalPrecision(Integer decimalPrecision)booleanequals(Object o)@Nullable IntegergetDecimalPrecision()Selects the number of decimal places for numeric values of contained SVGs.@Nullable OperationSvgFormat.GraphicsStateModeEnumgetGraphicsStateMode()Selects the SVG syntax used for formatting graphics states@Nullable OperationSvgFormat.PathDrawModeEnumgetPathDrawMode()Selects the SVG syntax used for formatting pathsOperationSvgFormatgraphicsStateMode(OperationSvgFormat.GraphicsStateModeEnum graphicsStateMode)inthashCode()OperationSvgFormatpathDrawMode(OperationSvgFormat.PathDrawModeEnum pathDrawMode)voidsetDecimalPrecision(Integer decimalPrecision)voidsetGraphicsStateMode(OperationSvgFormat.GraphicsStateModeEnum graphicsStateMode)voidsetPathDrawMode(OperationSvgFormat.PathDrawModeEnum pathDrawMode)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DECIMAL_PRECISION
public static final String JSON_PROPERTY_DECIMAL_PRECISION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GRAPHICS_STATE_MODE
public static final String JSON_PROPERTY_GRAPHICS_STATE_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PATH_DRAW_MODE
public static final String JSON_PROPERTY_PATH_DRAW_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
decimalPrecision
public OperationSvgFormat decimalPrecision(Integer decimalPrecision)
-
getDecimalPrecision
@Nullable public @Nullable Integer getDecimalPrecision()
Selects the number of decimal places for numeric values of contained SVGs. **Important:** The number of decimal places directly influences the size of the resulting file. (should SVGs be contained.) However: Higher values will result in a better SVG quality. minimum: 0 maximum: 10- Returns:
- decimalPrecision
-
setDecimalPrecision
public void setDecimalPrecision(Integer decimalPrecision)
-
graphicsStateMode
public OperationSvgFormat graphicsStateMode(OperationSvgFormat.GraphicsStateModeEnum graphicsStateMode)
-
getGraphicsStateMode
@Nullable public @Nullable OperationSvgFormat.GraphicsStateModeEnum getGraphicsStateMode()
Selects the SVG syntax used for formatting graphics states. * verbose = Writes verbose graphics states and groups and always prefers direct path definitions. * centralize = Writes compact graphics states and groups and centralizes formatting instructions, also utilizes the \"use\" syntax to prepare and reference indirect paths. (May not be readable by some SVG viewers.)- Returns:
- graphicsStateMode
-
setGraphicsStateMode
public void setGraphicsStateMode(OperationSvgFormat.GraphicsStateModeEnum graphicsStateMode)
-
pathDrawMode
public OperationSvgFormat pathDrawMode(OperationSvgFormat.PathDrawModeEnum pathDrawMode)
-
getPathDrawMode
@Nullable public @Nullable OperationSvgFormat.PathDrawModeEnum getPathDrawMode()
Selects the SVG syntax used for formatting paths. * verbose = Writes verbose paths, containing a human readable complete and simple syntax. * compress = Compresses path draw instructions, by applying the EBNF (Extended Backus Naur Form).- Returns:
- pathDrawMode
-
setPathDrawMode
public void setPathDrawMode(OperationSvgFormat.PathDrawModeEnum pathDrawMode)
-
-