Class OperationSvgFormat


  • public class OperationSvgFormat
    extends Object
    Selects parameters for the creation of SVGs, possibly contained in resulting documents.
    • Constructor Detail

      • OperationSvgFormat

        public OperationSvgFormat()
    • Method Detail

      • 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)
      • 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object