Class VectorizationApi

java.lang.Object
ai.vectorizer.api.VectorizationApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class VectorizationApi extends Object
  • Constructor Details

    • VectorizationApi

      public VectorizationApi()
    • VectorizationApi

      public VectorizationApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • postDelete

      Delete a retained image Delete a retained image and result before its retention period expires.
      Parameters:
      apiRequest - VectorizationApi.PostDeleteRequest
      Returns:
      DeleteImageResponse
      Throws:
      ApiException - if fails to make API call
    • postDeleteWithHttpInfo

      public ApiResponse<DeleteImageResponse> postDeleteWithHttpInfo(VectorizationApi.PostDeleteRequest apiRequest) throws ApiException
      Delete a retained image Delete a retained image and result before its retention period expires.
      Parameters:
      apiRequest - VectorizationApi.PostDeleteRequest
      Returns:
      ApiResponse<DeleteImageResponse>
      Throws:
      ApiException - if fails to make API call
    • postDelete

      public DeleteImageResponse postDelete(String imageToken) throws ApiException
      Delete a retained image Delete a retained image and result before its retention period expires.
      Parameters:
      imageToken - Image Token to delete before its retention period expires. (required)
      Returns:
      DeleteImageResponse
      Throws:
      ApiException - if fails to make API call
    • postDeleteWithHttpInfo

      public ApiResponse<DeleteImageResponse> postDeleteWithHttpInfo(String imageToken) throws ApiException
      Delete a retained image Delete a retained image and result before its retention period expires.
      Parameters:
      imageToken - Image Token to delete before its retention period expires. (required)
      Returns:
      ApiResponse<DeleteImageResponse>
      Throws:
      ApiException - if fails to make API call
    • postDownload

      public File postDownload(VectorizationApi.PostDownloadRequest apiRequest) throws ApiException
      Download a retained result Download a production result from a retained Image Token, optionally changing output.file_format and other output options. Include receipt when downloading additional formats after upgrading a preview result.
      Parameters:
      apiRequest - VectorizationApi.PostDownloadRequest
      Returns:
      File
      Throws:
      ApiException - if fails to make API call
    • postDownloadWithHttpInfo

      public ApiResponse<File> postDownloadWithHttpInfo(VectorizationApi.PostDownloadRequest apiRequest) throws ApiException
      Download a retained result Download a production result from a retained Image Token, optionally changing output.file_format and other output options. Include receipt when downloading additional formats after upgrading a preview result.
      Parameters:
      apiRequest - VectorizationApi.PostDownloadRequest
      Returns:
      ApiResponse<File>
      Throws:
      ApiException - if fails to make API call
    • postDownload

      public File postDownload(String imageToken, String receipt, String outputFileFormat, String outputShapeStacking, String outputGroupBy, String outputDrawStyle, Float outputStrokesStrokeWidth, Boolean outputStrokesNonScalingStroke, Boolean outputStrokesUseOverrideColor, String outputStrokesOverrideColor, Boolean outputGapFillerEnabled, Boolean outputGapFillerNonScalingStroke, Boolean outputGapFillerClip, Float outputGapFillerStrokeWidth, Boolean outputParameterizedShapesFlatten, Float outputCurvesLineFitTolerance, Boolean outputCurvesAllowedQuadraticBezier, Boolean outputCurvesAllowedCubicBezier, Boolean outputCurvesAllowedCircularArc, Boolean outputCurvesAllowedEllipticalArc, String outputSvgVersion, Boolean outputSvgFixedSize, Boolean outputSvgAdobeCompatibilityMode, String outputPdfVersion, String outputPdfCompressionMode, String outputEpsVersion, String outputDxfCompatibilityLevel, String outputBitmapAntiAliasingMode, Float outputSizeScale, Float outputSizeWidth, Float outputSizeHeight, String outputSizeUnit, String outputSizeAspectRatio, Float outputSizeAlignX, Float outputSizeAlignY, Float outputSizeInputDpi, Float outputSizeOutputDpi) throws ApiException
      Download a retained result Download a production result from a retained Image Token, optionally changing output.file_format and other output options. Include receipt when downloading additional formats after upgrading a preview result.
      Parameters:
      imageToken - Image Token returned from a vectorize request with policy.retention_days > 0. (required)
      receipt - Receipt returned in the X-Receipt response header when upgrading a preview result to production. Include it when downloading additional formats from that upgraded preview. (optional)
      outputFileFormat - Output file format to generate. (optional, default to svg)
      outputShapeStacking - Whether shapes are cut out of each other or stacked atop each other. (optional, default to cutouts)
      outputGroupBy - Grouping of shapes in output. (optional, default to none)
      outputDrawStyle - How shapes are rendered. (optional, default to fill_shapes)
      outputStrokesStrokeWidth - Width of stroke for shape outlines (when enabled). (optional, default to 1)
      outputStrokesNonScalingStroke - Use non-scaling strokes when drawing shape outlines. (optional, default to true)
      outputStrokesUseOverrideColor - Override shape color with a specific color. (optional, default to false)
      outputStrokesOverrideColor - Color value to override shape stroke color if enabled. Must be in '#RRGGBB' or 'rgba(r,g,b,a)' format. (optional, default to #000000)
      outputGapFillerEnabled - Enable filling small visual gaps caused by vector rendering artifacts. (optional, default to true)
      outputGapFillerNonScalingStroke - Use non-scaling strokes for gap filling. (optional, default to true)
      outputGapFillerClip - Clip gap filler strokes to shape bounds when stacking shapes. (optional, default to false)
      outputGapFillerStrokeWidth - Width of the gap filler strokes (in output units). (optional, default to 2)
      outputParameterizedShapesFlatten - Whether to flatten detected circles, rectangles, and stars to curves. (optional, default to false)
      outputCurvesLineFitTolerance - Maximum allowed error when approximating curves with line segments. (optional, default to 0.1)
      outputCurvesAllowedQuadraticBezier - Allow quadratic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCubicBezier - Allow cubic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCircularArc - Allow circular arcs in the output. (optional, default to true)
      outputCurvesAllowedEllipticalArc - Allow elliptical arcs in the output. (optional, default to true)
      outputSvgVersion - SVG version to declare in the SVG output. (optional, default to svg_1_1)
      outputSvgFixedSize - Whether to fix the SVG dimensions in the output file. (optional, default to false)
      outputSvgAdobeCompatibilityMode - Enable Illustrator compatibility by disabling unsupported SVG features. (optional, default to false)
      outputPdfVersion - PDF version to generate for PDF output. (optional, default to PDF_1_4)
      outputPdfCompressionMode - Compression method to apply to PDF output streams. (optional, default to Deflate)
      outputEpsVersion - EPS format version for EPS output. (optional, default to PS_3_0_EPSF_3_0)
      outputDxfCompatibilityLevel - Level of primitive support for DXF output. (optional, default to lines_and_arcs)
      outputBitmapAntiAliasingMode - Anti-aliasing mode for bitmap (PNG) output. (optional, default to anti_aliased)
      outputSizeScale - Overall uniform scaling factor for the output image. (optional)
      outputSizeWidth - Output width, in the selected unit (see output.size.unit). (optional)
      outputSizeHeight - Output height, in the selected unit (see output.size.unit). (optional)
      outputSizeUnit - Measurement unit for output dimensions. (optional, default to none)
      outputSizeAspectRatio - How to preserve or stretch aspect ratio. (optional, default to preserve_inset)
      outputSizeAlignX - Horizontal alignment (0.0 = left, 0.5 = center, 1.0 = right) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeAlignY - Vertical alignment (0.0 = top, 0.5 = center, 1.0 = bottom) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeInputDpi - Override the detected DPI of the input image for size computations. (optional)
      outputSizeOutputDpi - DPI setting for the output image. (optional)
      Returns:
      File
      Throws:
      ApiException - if fails to make API call
    • postDownloadWithHttpInfo

      public ApiResponse<File> postDownloadWithHttpInfo(String imageToken, String receipt, String outputFileFormat, String outputShapeStacking, String outputGroupBy, String outputDrawStyle, Float outputStrokesStrokeWidth, Boolean outputStrokesNonScalingStroke, Boolean outputStrokesUseOverrideColor, String outputStrokesOverrideColor, Boolean outputGapFillerEnabled, Boolean outputGapFillerNonScalingStroke, Boolean outputGapFillerClip, Float outputGapFillerStrokeWidth, Boolean outputParameterizedShapesFlatten, Float outputCurvesLineFitTolerance, Boolean outputCurvesAllowedQuadraticBezier, Boolean outputCurvesAllowedCubicBezier, Boolean outputCurvesAllowedCircularArc, Boolean outputCurvesAllowedEllipticalArc, String outputSvgVersion, Boolean outputSvgFixedSize, Boolean outputSvgAdobeCompatibilityMode, String outputPdfVersion, String outputPdfCompressionMode, String outputEpsVersion, String outputDxfCompatibilityLevel, String outputBitmapAntiAliasingMode, Float outputSizeScale, Float outputSizeWidth, Float outputSizeHeight, String outputSizeUnit, String outputSizeAspectRatio, Float outputSizeAlignX, Float outputSizeAlignY, Float outputSizeInputDpi, Float outputSizeOutputDpi) throws ApiException
      Download a retained result Download a production result from a retained Image Token, optionally changing output.file_format and other output options. Include receipt when downloading additional formats after upgrading a preview result.
      Parameters:
      imageToken - Image Token returned from a vectorize request with policy.retention_days > 0. (required)
      receipt - Receipt returned in the X-Receipt response header when upgrading a preview result to production. Include it when downloading additional formats from that upgraded preview. (optional)
      outputFileFormat - Output file format to generate. (optional, default to svg)
      outputShapeStacking - Whether shapes are cut out of each other or stacked atop each other. (optional, default to cutouts)
      outputGroupBy - Grouping of shapes in output. (optional, default to none)
      outputDrawStyle - How shapes are rendered. (optional, default to fill_shapes)
      outputStrokesStrokeWidth - Width of stroke for shape outlines (when enabled). (optional, default to 1)
      outputStrokesNonScalingStroke - Use non-scaling strokes when drawing shape outlines. (optional, default to true)
      outputStrokesUseOverrideColor - Override shape color with a specific color. (optional, default to false)
      outputStrokesOverrideColor - Color value to override shape stroke color if enabled. Must be in '#RRGGBB' or 'rgba(r,g,b,a)' format. (optional, default to #000000)
      outputGapFillerEnabled - Enable filling small visual gaps caused by vector rendering artifacts. (optional, default to true)
      outputGapFillerNonScalingStroke - Use non-scaling strokes for gap filling. (optional, default to true)
      outputGapFillerClip - Clip gap filler strokes to shape bounds when stacking shapes. (optional, default to false)
      outputGapFillerStrokeWidth - Width of the gap filler strokes (in output units). (optional, default to 2)
      outputParameterizedShapesFlatten - Whether to flatten detected circles, rectangles, and stars to curves. (optional, default to false)
      outputCurvesLineFitTolerance - Maximum allowed error when approximating curves with line segments. (optional, default to 0.1)
      outputCurvesAllowedQuadraticBezier - Allow quadratic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCubicBezier - Allow cubic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCircularArc - Allow circular arcs in the output. (optional, default to true)
      outputCurvesAllowedEllipticalArc - Allow elliptical arcs in the output. (optional, default to true)
      outputSvgVersion - SVG version to declare in the SVG output. (optional, default to svg_1_1)
      outputSvgFixedSize - Whether to fix the SVG dimensions in the output file. (optional, default to false)
      outputSvgAdobeCompatibilityMode - Enable Illustrator compatibility by disabling unsupported SVG features. (optional, default to false)
      outputPdfVersion - PDF version to generate for PDF output. (optional, default to PDF_1_4)
      outputPdfCompressionMode - Compression method to apply to PDF output streams. (optional, default to Deflate)
      outputEpsVersion - EPS format version for EPS output. (optional, default to PS_3_0_EPSF_3_0)
      outputDxfCompatibilityLevel - Level of primitive support for DXF output. (optional, default to lines_and_arcs)
      outputBitmapAntiAliasingMode - Anti-aliasing mode for bitmap (PNG) output. (optional, default to anti_aliased)
      outputSizeScale - Overall uniform scaling factor for the output image. (optional)
      outputSizeWidth - Output width, in the selected unit (see output.size.unit). (optional)
      outputSizeHeight - Output height, in the selected unit (see output.size.unit). (optional)
      outputSizeUnit - Measurement unit for output dimensions. (optional, default to none)
      outputSizeAspectRatio - How to preserve or stretch aspect ratio. (optional, default to preserve_inset)
      outputSizeAlignX - Horizontal alignment (0.0 = left, 0.5 = center, 1.0 = right) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeAlignY - Vertical alignment (0.0 = top, 0.5 = center, 1.0 = bottom) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeInputDpi - Override the detected DPI of the input image for size computations. (optional)
      outputSizeOutputDpi - DPI setting for the output image. (optional)
      Returns:
      ApiResponse<File>
      Throws:
      ApiException - if fails to make API call
    • postVectorize

      public File postVectorize(VectorizationApi.PostVectorizeRequest apiRequest) throws ApiException
      Vectorize an image Submit exactly one image source as multipart form data: image, image.url, image.base64, or image.token. The response body is the generated SVG, EPS, PDF, DXF, or PNG file selected by output.file_format. Clients should allow an idle timeout of at least 180 seconds.
      Parameters:
      apiRequest - VectorizationApi.PostVectorizeRequest
      Returns:
      File
      Throws:
      ApiException - if fails to make API call
    • postVectorizeWithHttpInfo

      public ApiResponse<File> postVectorizeWithHttpInfo(VectorizationApi.PostVectorizeRequest apiRequest) throws ApiException
      Vectorize an image Submit exactly one image source as multipart form data: image, image.url, image.base64, or image.token. The response body is the generated SVG, EPS, PDF, DXF, or PNG file selected by output.file_format. Clients should allow an idle timeout of at least 180 seconds.
      Parameters:
      apiRequest - VectorizationApi.PostVectorizeRequest
      Returns:
      ApiResponse<File>
      Throws:
      ApiException - if fails to make API call
    • postVectorize

      public File postVectorize(File image, URI imageUrl, byte[] imageBase64, String imageToken, String mode, Integer inputMaxPixels, Integer policyRetentionDays, Integer processingMaxColors, Float processingShapesMinAreaPx, String processingPalette, String processingColorProfileInput, String processingColorProfileOutput, Boolean processingParameterizedShapesEllipseGeneralEnabled, Boolean processingParameterizedShapesEllipseCircleEnabled, Boolean processingParameterizedShapesTriangleGeneralEnabled, Boolean processingParameterizedShapesTriangleIsoscelesEnabled, Boolean processingParameterizedShapesQuadrilateralGeneralEnabled, Boolean processingParameterizedShapesQuadrilateralRectangleEnabled, Boolean processingParameterizedShapesQuadrilateralBulletEnabled, Boolean processingParameterizedShapesStarN3Enabled, Boolean processingParameterizedShapesStarN4Enabled, Boolean processingParameterizedShapesStarN5Enabled, Boolean processingParameterizedShapesStarN6Enabled, String outputFileFormat, String outputShapeStacking, String outputGroupBy, String outputDrawStyle, Float outputStrokesStrokeWidth, Boolean outputStrokesNonScalingStroke, Boolean outputStrokesUseOverrideColor, String outputStrokesOverrideColor, Boolean outputGapFillerEnabled, Boolean outputGapFillerNonScalingStroke, Boolean outputGapFillerClip, Float outputGapFillerStrokeWidth, Boolean outputParameterizedShapesFlatten, Float outputCurvesLineFitTolerance, Boolean outputCurvesAllowedQuadraticBezier, Boolean outputCurvesAllowedCubicBezier, Boolean outputCurvesAllowedCircularArc, Boolean outputCurvesAllowedEllipticalArc, String outputSvgVersion, Boolean outputSvgFixedSize, Boolean outputSvgAdobeCompatibilityMode, String outputPdfVersion, String outputPdfCompressionMode, String outputEpsVersion, String outputDxfCompatibilityLevel, String outputBitmapAntiAliasingMode, Float outputSizeScale, Float outputSizeWidth, Float outputSizeHeight, String outputSizeUnit, String outputSizeAspectRatio, Float outputSizeAlignX, Float outputSizeAlignY, Float outputSizeInputDpi, Float outputSizeOutputDpi) throws ApiException
      Vectorize an image Submit exactly one image source as multipart form data: image, image.url, image.base64, or image.token. The response body is the generated SVG, EPS, PDF, DXF, or PNG file selected by output.file_format. Clients should allow an idle timeout of at least 180 seconds.
      Parameters:
      image - Binary file upload of the image to vectorize. Accepts .bmp, .gif, .jpeg, .png, or .tiff files. (optional)
      imageUrl - URL to fetch the input image from for vectorization. (optional)
      imageBase64 - Base64-encoded string of the input image. Maximum size 1 megabyte. (optional)
      imageToken - An Image Token returned from an earlier vectorization call with policy.retention_days > 0. (optional)
      mode - Mode of operation, useful during integration work. (optional, default to production)
      inputMaxPixels - Maximum input image size (width × height in pixels) before resizing. (optional, default to 2097252)
      policyRetentionDays - Number of days to retain the uploaded image and its results for re-use. (optional, default to 0)
      processingMaxColors - Maximum number of colors allowed in the vectorization result. 0 means unlimited. (optional, default to 0)
      processingShapesMinAreaPx - Minimum shape area (in pixels) to keep in the result; smaller shapes are discarded. (optional, default to 0.125)
      processingPalette - Palette remapping and color control, using '[color][-> remapped][~ tolerance];' format. (optional)
      processingColorProfileInput - How to handle ICC profiles embedded in input images. (optional, default to ignore)
      processingColorProfileOutput - ICC profile behavior for output files: preserve, ignore. (optional, default to ignore)
      processingParameterizedShapesEllipseGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesEllipseCircleEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesTriangleGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesTriangleIsoscelesEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralRectangleEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralBulletEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN3Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN4Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN5Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN6Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      outputFileFormat - Output file format to generate. (optional, default to svg)
      outputShapeStacking - Whether shapes are cut out of each other or stacked atop each other. (optional, default to cutouts)
      outputGroupBy - Grouping of shapes in output. (optional, default to none)
      outputDrawStyle - How shapes are rendered. (optional, default to fill_shapes)
      outputStrokesStrokeWidth - Width of stroke for shape outlines (when enabled). (optional, default to 1)
      outputStrokesNonScalingStroke - Use non-scaling strokes when drawing shape outlines. (optional, default to true)
      outputStrokesUseOverrideColor - Override shape color with a specific color. (optional, default to false)
      outputStrokesOverrideColor - Color value to override shape stroke color if enabled. Must be in '#RRGGBB' or 'rgba(r,g,b,a)' format. (optional, default to #000000)
      outputGapFillerEnabled - Enable filling small visual gaps caused by vector rendering artifacts. (optional, default to true)
      outputGapFillerNonScalingStroke - Use non-scaling strokes for gap filling. (optional, default to true)
      outputGapFillerClip - Clip gap filler strokes to shape bounds when stacking shapes. (optional, default to false)
      outputGapFillerStrokeWidth - Width of the gap filler strokes (in output units). (optional, default to 2)
      outputParameterizedShapesFlatten - Whether to flatten detected circles, rectangles, and stars to curves. (optional, default to false)
      outputCurvesLineFitTolerance - Maximum allowed error when approximating curves with line segments. (optional, default to 0.1)
      outputCurvesAllowedQuadraticBezier - Allow quadratic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCubicBezier - Allow cubic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCircularArc - Allow circular arcs in the output. (optional, default to true)
      outputCurvesAllowedEllipticalArc - Allow elliptical arcs in the output. (optional, default to true)
      outputSvgVersion - SVG version to declare in the SVG output. (optional, default to svg_1_1)
      outputSvgFixedSize - Whether to fix the SVG dimensions in the output file. (optional, default to false)
      outputSvgAdobeCompatibilityMode - Enable Illustrator compatibility by disabling unsupported SVG features. (optional, default to false)
      outputPdfVersion - PDF version to generate for PDF output. (optional, default to PDF_1_4)
      outputPdfCompressionMode - Compression method to apply to PDF output streams. (optional, default to Deflate)
      outputEpsVersion - EPS format version for EPS output. (optional, default to PS_3_0_EPSF_3_0)
      outputDxfCompatibilityLevel - Level of primitive support for DXF output. (optional, default to lines_and_arcs)
      outputBitmapAntiAliasingMode - Anti-aliasing mode for bitmap (PNG) output. (optional, default to anti_aliased)
      outputSizeScale - Overall uniform scaling factor for the output image. (optional)
      outputSizeWidth - Output width, in the selected unit (see output.size.unit). (optional)
      outputSizeHeight - Output height, in the selected unit (see output.size.unit). (optional)
      outputSizeUnit - Measurement unit for output dimensions. (optional, default to none)
      outputSizeAspectRatio - How to preserve or stretch aspect ratio. (optional, default to preserve_inset)
      outputSizeAlignX - Horizontal alignment (0.0 = left, 0.5 = center, 1.0 = right) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeAlignY - Vertical alignment (0.0 = top, 0.5 = center, 1.0 = bottom) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeInputDpi - Override the detected DPI of the input image for size computations. (optional)
      outputSizeOutputDpi - DPI setting for the output image. (optional)
      Returns:
      File
      Throws:
      ApiException - if fails to make API call
    • postVectorizeWithHttpInfo

      public ApiResponse<File> postVectorizeWithHttpInfo(File image, URI imageUrl, byte[] imageBase64, String imageToken, String mode, Integer inputMaxPixels, Integer policyRetentionDays, Integer processingMaxColors, Float processingShapesMinAreaPx, String processingPalette, String processingColorProfileInput, String processingColorProfileOutput, Boolean processingParameterizedShapesEllipseGeneralEnabled, Boolean processingParameterizedShapesEllipseCircleEnabled, Boolean processingParameterizedShapesTriangleGeneralEnabled, Boolean processingParameterizedShapesTriangleIsoscelesEnabled, Boolean processingParameterizedShapesQuadrilateralGeneralEnabled, Boolean processingParameterizedShapesQuadrilateralRectangleEnabled, Boolean processingParameterizedShapesQuadrilateralBulletEnabled, Boolean processingParameterizedShapesStarN3Enabled, Boolean processingParameterizedShapesStarN4Enabled, Boolean processingParameterizedShapesStarN5Enabled, Boolean processingParameterizedShapesStarN6Enabled, String outputFileFormat, String outputShapeStacking, String outputGroupBy, String outputDrawStyle, Float outputStrokesStrokeWidth, Boolean outputStrokesNonScalingStroke, Boolean outputStrokesUseOverrideColor, String outputStrokesOverrideColor, Boolean outputGapFillerEnabled, Boolean outputGapFillerNonScalingStroke, Boolean outputGapFillerClip, Float outputGapFillerStrokeWidth, Boolean outputParameterizedShapesFlatten, Float outputCurvesLineFitTolerance, Boolean outputCurvesAllowedQuadraticBezier, Boolean outputCurvesAllowedCubicBezier, Boolean outputCurvesAllowedCircularArc, Boolean outputCurvesAllowedEllipticalArc, String outputSvgVersion, Boolean outputSvgFixedSize, Boolean outputSvgAdobeCompatibilityMode, String outputPdfVersion, String outputPdfCompressionMode, String outputEpsVersion, String outputDxfCompatibilityLevel, String outputBitmapAntiAliasingMode, Float outputSizeScale, Float outputSizeWidth, Float outputSizeHeight, String outputSizeUnit, String outputSizeAspectRatio, Float outputSizeAlignX, Float outputSizeAlignY, Float outputSizeInputDpi, Float outputSizeOutputDpi) throws ApiException
      Vectorize an image Submit exactly one image source as multipart form data: image, image.url, image.base64, or image.token. The response body is the generated SVG, EPS, PDF, DXF, or PNG file selected by output.file_format. Clients should allow an idle timeout of at least 180 seconds.
      Parameters:
      image - Binary file upload of the image to vectorize. Accepts .bmp, .gif, .jpeg, .png, or .tiff files. (optional)
      imageUrl - URL to fetch the input image from for vectorization. (optional)
      imageBase64 - Base64-encoded string of the input image. Maximum size 1 megabyte. (optional)
      imageToken - An Image Token returned from an earlier vectorization call with policy.retention_days > 0. (optional)
      mode - Mode of operation, useful during integration work. (optional, default to production)
      inputMaxPixels - Maximum input image size (width × height in pixels) before resizing. (optional, default to 2097252)
      policyRetentionDays - Number of days to retain the uploaded image and its results for re-use. (optional, default to 0)
      processingMaxColors - Maximum number of colors allowed in the vectorization result. 0 means unlimited. (optional, default to 0)
      processingShapesMinAreaPx - Minimum shape area (in pixels) to keep in the result; smaller shapes are discarded. (optional, default to 0.125)
      processingPalette - Palette remapping and color control, using '[color][-> remapped][~ tolerance];' format. (optional)
      processingColorProfileInput - How to handle ICC profiles embedded in input images. (optional, default to ignore)
      processingColorProfileOutput - ICC profile behavior for output files: preserve, ignore. (optional, default to ignore)
      processingParameterizedShapesEllipseGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesEllipseCircleEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesTriangleGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesTriangleIsoscelesEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralGeneralEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralRectangleEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesQuadrilateralBulletEnabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN3Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN4Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN5Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      processingParameterizedShapesStarN6Enabled - Enable detection and parameterization of this parameterized shape type. (optional, default to true)
      outputFileFormat - Output file format to generate. (optional, default to svg)
      outputShapeStacking - Whether shapes are cut out of each other or stacked atop each other. (optional, default to cutouts)
      outputGroupBy - Grouping of shapes in output. (optional, default to none)
      outputDrawStyle - How shapes are rendered. (optional, default to fill_shapes)
      outputStrokesStrokeWidth - Width of stroke for shape outlines (when enabled). (optional, default to 1)
      outputStrokesNonScalingStroke - Use non-scaling strokes when drawing shape outlines. (optional, default to true)
      outputStrokesUseOverrideColor - Override shape color with a specific color. (optional, default to false)
      outputStrokesOverrideColor - Color value to override shape stroke color if enabled. Must be in '#RRGGBB' or 'rgba(r,g,b,a)' format. (optional, default to #000000)
      outputGapFillerEnabled - Enable filling small visual gaps caused by vector rendering artifacts. (optional, default to true)
      outputGapFillerNonScalingStroke - Use non-scaling strokes for gap filling. (optional, default to true)
      outputGapFillerClip - Clip gap filler strokes to shape bounds when stacking shapes. (optional, default to false)
      outputGapFillerStrokeWidth - Width of the gap filler strokes (in output units). (optional, default to 2)
      outputParameterizedShapesFlatten - Whether to flatten detected circles, rectangles, and stars to curves. (optional, default to false)
      outputCurvesLineFitTolerance - Maximum allowed error when approximating curves with line segments. (optional, default to 0.1)
      outputCurvesAllowedQuadraticBezier - Allow quadratic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCubicBezier - Allow cubic Bézier curves in the output. (optional, default to true)
      outputCurvesAllowedCircularArc - Allow circular arcs in the output. (optional, default to true)
      outputCurvesAllowedEllipticalArc - Allow elliptical arcs in the output. (optional, default to true)
      outputSvgVersion - SVG version to declare in the SVG output. (optional, default to svg_1_1)
      outputSvgFixedSize - Whether to fix the SVG dimensions in the output file. (optional, default to false)
      outputSvgAdobeCompatibilityMode - Enable Illustrator compatibility by disabling unsupported SVG features. (optional, default to false)
      outputPdfVersion - PDF version to generate for PDF output. (optional, default to PDF_1_4)
      outputPdfCompressionMode - Compression method to apply to PDF output streams. (optional, default to Deflate)
      outputEpsVersion - EPS format version for EPS output. (optional, default to PS_3_0_EPSF_3_0)
      outputDxfCompatibilityLevel - Level of primitive support for DXF output. (optional, default to lines_and_arcs)
      outputBitmapAntiAliasingMode - Anti-aliasing mode for bitmap (PNG) output. (optional, default to anti_aliased)
      outputSizeScale - Overall uniform scaling factor for the output image. (optional)
      outputSizeWidth - Output width, in the selected unit (see output.size.unit). (optional)
      outputSizeHeight - Output height, in the selected unit (see output.size.unit). (optional)
      outputSizeUnit - Measurement unit for output dimensions. (optional, default to none)
      outputSizeAspectRatio - How to preserve or stretch aspect ratio. (optional, default to preserve_inset)
      outputSizeAlignX - Horizontal alignment (0.0 = left, 0.5 = center, 1.0 = right) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeAlignY - Vertical alignment (0.0 = top, 0.5 = center, 1.0 = bottom) when aspect ratio is preserved. (optional, default to 0.5)
      outputSizeInputDpi - Override the detected DPI of the input image for size computations. (optional)
      outputSizeOutputDpi - DPI setting for the output image. (optional)
      Returns:
      ApiResponse<File>
      Throws:
      ApiException - if fails to make API call