Class OperationSvg


  • public class OperationSvg
    extends Object
    Defines a target SVG image format.
    • Constructor Detail

      • OperationSvg

        public OperationSvg()
    • Method Detail

      • getDecimalPrecision

        @Nullable
        public @Nullable Integer getDecimalPrecision()
        Selects the number of decimal places for numeric values of the resulting SVG. **Important:** The number of decimal places directly influences the size of the resulting file. However: Higher values will result in a better SVG quality. minimum: 0 maximum: 10
        Returns:
        decimalPrecision
      • setDecimalPrecision

        public void setDecimalPrecision​(Integer decimalPrecision)
      • getDpi

        @Nullable
        public @Nullable Integer getDpi()
        This parameter is used to define the image's DPI resolution. The larger the value, the larger the image's x, y resolution. In addition, the larger the DPI resolution, the larger the size of the image file. minimum: 0 maximum: 9600
        Returns:
        dpi
      • setDpi

        public void setDpi​(Integer dpi)
      • getGraphicsStateMode

        @Nullable
        public @Nullable OperationSvg.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
      • getHeight

        @Nullable
        public @Nullable Integer getHeight()
        Used to limit the maximum height of the exported image. 0 = No restriction minimum: 0
        Returns:
        height
      • setHeight

        public void setHeight​(Integer height)
      • getMetrics

        @Nullable
        public @Nullable OperationSvg.MetricsEnum getMetrics()
        Unit for the X-axis/Y-axis position and signature field height and width arguments: * pt = Points(1/72 inch) * pc = Picas(12 points) * px = Pixels(1/96 inch) * mm = Millimeters * in = Inches
        Returns:
        metrics
      • getPathDrawMode

        @Nullable
        public @Nullable OperationSvg.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
      • getWidth

        @Nullable
        public @Nullable Integer getWidth()
        Used to limit the maximum width of the exported image. 0 = No restriction minimum: 0
        Returns:
        width
      • setWidth

        public void setWidth​(Integer width)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object