Class CadApi


  • public class CadApi
    extends Object
    Aspose.CAD Cloud API
    • Constructor Detail

      • CadApi

        public CadApi​(String baseUrl)
        Initializes a new instance of the CadApi class for on-premise deployment service usage.
        Parameters:
        baseUrl - The base URL.
      • CadApi

        public CadApi​(String clientSecret,
                      String clientId)
        Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.
        Parameters:
        clientSecret - The Client Secret.
        clientId - The Client ID.
      • CadApi

        public CadApi​(String baseUrl,
                      String apiVersion,
                      Boolean debugMode)
               throws Exception
        Initializes a new instance of the CadApi class for on-premise deployment service usage.
        Parameters:
        baseUrl - The base URL.
        apiVersion - API version.
        debugMode - If debug mode is enabled.
        Throws:
        Exception
      • CadApi

        public CadApi​(String clientSecret,
                      String clientId,
                      String baseUrl)
        Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.
        Parameters:
        clientSecret - The Client Secret.
        clientId - The Client ID.
        baseUrl - The base URL.
      • CadApi

        public CadApi​(String clientSecret,
                      String clientId,
                      String baseUrl,
                      String apiVersion)
               throws Exception
        Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.
        Parameters:
        clientSecret - The Client Secret.
        clientId - The Client ID.
        baseUrl - The base URL.
        apiVersion - API version.
        Throws:
        Exception
      • CadApi

        public CadApi​(String clientSecret,
                      String clientId,
                      String baseUrl,
                      String apiVersion,
                      Boolean debug)
               throws Exception
        Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.
        Parameters:
        clientSecret - The Client Secret.
        clientId - The Client ID.
        baseUrl - The base URL.
        apiVersion - API version.
        debug - If debug mode is enabled.
        Throws:
        Exception
    • Method Detail

      • copyFile

        public void copyFile​(CopyFileRequest request)
                      throws Exception
        Copy file
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • copyFolder

        public void copyFolder​(CopyFolderRequest request)
                        throws Exception
        Copy folder
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • createFolder

        public void createFolder​(CreateFolderRequest request)
                          throws Exception
        Create the folder
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • deleteFile

        public void deleteFile​(DeleteFileRequest request)
                        throws Exception
        Delete file
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • deleteFolder

        public void deleteFolder​(DeleteFolderRequest request)
                          throws Exception
        Delete folder
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • downloadFile

        public byte[] downloadFile​(DownloadFileRequest request)
                            throws Exception
        Download file
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • getDrawingResize

        public byte[] getDrawingResize​(GetDrawingResizeRequest request)
                                throws Exception
        Resize an existing drawing.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • getDrawingRotateFlip

        public byte[] getDrawingRotateFlip​(GetDrawingRotateFlipRequest request)
                                    throws Exception
        Rotate/flip an existing drawing.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • getDrawingSaveAs

        public byte[] getDrawingSaveAs​(GetDrawingSaveAsRequest request)
                                throws Exception
        Export an existing drawing to another format.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • getFilesList

        public FilesList getFilesList​(GetFilesListRequest request)
                               throws Exception
        Get all files and folders within a folder
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        FilesList
        Throws:
        Exception
      • moveFile

        public void moveFile​(MoveFileRequest request)
                      throws Exception
        Move file
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • moveFolder

        public void moveFolder​(MoveFolderRequest request)
                        throws Exception
        Move folder
        Parameters:
        request - Holds parameters for this request invocation.
        Throws:
        Exception
      • postDrawingBmp

        public byte[] postDrawingBmp​(PostDrawingBmpRequest request)
                              throws Exception
        Export an existing drawing to BMP format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingGif

        public byte[] postDrawingGif​(PostDrawingGifRequest request)
                              throws Exception
        Export an existing drawing into GIF format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingJpeg

        public byte[] postDrawingJpeg​(PostDrawingJpegRequest request)
                               throws Exception
        Export an existing drawing into JPEG format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingJpeg2000

        public byte[] postDrawingJpeg2000​(PostDrawingJpeg2000Request request)
                                   throws Exception
        Export an existing drawing into JPEG2000 format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingPdf

        public byte[] postDrawingPdf​(PostDrawingPdfRequest request)
                              throws Exception
        Export an existing drawing to PDF format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingPng

        public byte[] postDrawingPng​(PostDrawingPngRequest request)
                              throws Exception
        Export an existing drawing into PNG format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingProperties

        public CadResponse postDrawingProperties​(PostDrawingPropertiesRequest request)
                                          throws Exception
        Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        CadResponse
        Throws:
        Exception
      • postDrawingPsd

        public byte[] postDrawingPsd​(PostDrawingPsdRequest request)
                              throws Exception
        Export an existing drawing into PSD format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingResize

        public byte[] postDrawingResize​(PostDrawingResizeRequest request)
                                 throws Exception
        Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingRotateFlip

        public byte[] postDrawingRotateFlip​(PostDrawingRotateFlipRequest request)
                                     throws Exception
        Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingSaveAs

        public byte[] postDrawingSaveAs​(PostDrawingSaveAsRequest request)
                                 throws Exception
        Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingSvg

        public byte[] postDrawingSvg​(PostDrawingSvgRequest request)
                              throws Exception
        Export an existing drawing to SVG format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingTiff

        public byte[] postDrawingTiff​(PostDrawingTiffRequest request)
                               throws Exception
        Export an existing drawing into TIFF format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • postDrawingWmf

        public byte[] postDrawingWmf​(PostDrawingWmfRequest request)
                              throws Exception
        Export an existing drawing to WMF format with export settings specified.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingBmp

        public byte[] putDrawingBmp​(PutDrawingBmpRequest request)
                             throws Exception
        Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingGif

        public byte[] putDrawingGif​(PutDrawingGifRequest request)
                             throws Exception
        Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingJpeg

        public byte[] putDrawingJpeg​(PutDrawingJpegRequest request)
                              throws Exception
        Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingJpeg2000

        public byte[] putDrawingJpeg2000​(PutDrawingJpeg2000Request request)
                                  throws Exception
        Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingPdf

        public byte[] putDrawingPdf​(PutDrawingPdfRequest request)
                             throws Exception
        Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingPng

        public byte[] putDrawingPng​(PutDrawingPngRequest request)
                             throws Exception
        Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingPsd

        public byte[] putDrawingPsd​(PutDrawingPsdRequest request)
                             throws Exception
        Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingSvg

        public byte[] putDrawingSvg​(PutDrawingSvgRequest request)
                             throws Exception
        Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingTiff

        public byte[] putDrawingTiff​(PutDrawingTiffRequest request)
                              throws Exception
        Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception
      • putDrawingWmf

        public byte[] putDrawingWmf​(PutDrawingWmfRequest request)
                             throws Exception
        Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.
        Parameters:
        request - Holds parameters for this request invocation.
        Returns:
        byte[]
        Throws:
        Exception