
Aspose.CAD Cloud SDK for PHP
PHP REST API to Create, Edit & Convert CAD Drawings
A Powerful PHP CAD Drawings Processing SDK that enabels software developers to open, load, read, manipulate, scale, protect, & convert AutoCAD DWG, DXF DWF and BIM Files.
What is Aspose.CAD Cloud SDK for PHP?
Aspose.CAD Cloud SDK for PHP is a powerful tool that lets PHP developers handle AutoCAD and BIM drawings. It supports creating and managing CAD drawings in different formats like DWG, DXF, DWF, and more, all without requiring extra software. This SDK is a budget-friendly option that saves you from having to buy pricey CAD software licenses. You can use the SDK on different platforms like Windows, Linux, and macOS that support PHP. It allows you to create CAD drawings, edit CAD entities such as lines, circles, and arcs, change CAD files into different image formats, export CAD drawings with a request body, flip or rotate AutoCAD images, and convert AutoCAD DWG files to PDF, resizing or scaling AutoCAD drawing images, get properties of an image, and many more.
The Aspose.CAD Cloud SDK for PHP offers many features that software developers find useful when handling AutoCAD drawings.The SDK offers a range of APIs that enable developers to make, edit, and transform CAD files without requiring extra software. It fully supports the export of AutoCAD designs like DWG, DWF, and DXF to various formats like PDF, BMP, PNG, JPG, and more. You can utilize it to handle and work on CAD files for architectural and engineering tasks. The SDK provides developers with useful tools to automate tasks like converting file formats and rendering. It offers a variety of features and advantages that developers in different fields find valuable.
Getting Started with Aspose.CAD Cloud SDK for PHP
The recommend way to install Aspose.CAD Cloud SDK for PHP is using composer. To work with Aspose.CAD Cloud SDK for PHP, you need to have PHP 5.6 or later. Run the following command to add the Aspose Cloud SDK for PHP to your project.
Install Aspose.CAD Cloud SDK for PHP via Composer
composer require aspose/cad-cloud-sdk-php
You can also download it directly from Aspose product page.CAD Drawings Conversion to PDF via PHP API
Aspose.CAD Cloud SDK for PHP has included a very useful feature for converting AutoCAD drawings to Portable Document Format (PDF) with just a couple of lines of PHP code. The library also included support for exporting the existing image to PDF format or exporting the existing image to another format (JPG, BMP, PSD, TIFF, GIF, PNG,J2K, WMF) where the Image is passed as a request body. The following example demonstrates how PHP developers can Export existing drawings to PDF format using PHP commands.
How to Export Existing Drawing to PDF via PHP API?
storage->PutCreate($putRequest);
$request = new \Aspose\CAD\Model\Requests\GetDrawingResizeRequest($remoteName, $outputFormat, 320, 240, $folder=trim(self::$baseRemoteFolder . $subfolder));
list($response, $code, $headers) = $this->CAD->getDrawingResizeWithHttpInfo($request);
Assert::assertEquals(200, $code);
}
?>
Rotate and Resize CAD Images via PHP API
Aspose.CAD Cloud SDK for PHP is a very useful CAD image manipulation SDK that enables software developers to open and rotate their CAD images inside their own PHP applications. The library has included very useful methods for loading existing CAD drawings, rotating or flips the CAD drawings, adjusting the size of drawing images, Image scaling support, and many more. The following example demonstrates how to rotate and flip an existing image using PHP code.
How to Rotate and Flip CAD Images via PHP API?
storage->PutCreate($putRequest);
$request = new \Aspose\CAD\Model\Requests\PostDrawingResizeRequest($file, $outputFormat, 320, 240, $folder=trim(self::$baseRemoteFolder . $subfolder, ""));
list($response, $code, $headers) = $this->CAD->postDrawingResizeWithHttpInfo($request);
Assert::assertEquals(200, $code);
}
?>
CAD Drawings Export to Raster Images via PHP
Most photos come in the raster file format, as it is one of the most widely used file formats whether they're print or digital. Raster images work best when users need to store and display high-quality photographs. Aspose.CAD Cloud SDK for PHP makes it easy for software developers to export CAD drawings to raster images with ease. The library supports CAD Drawings conversion to BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF, and WMF formats. The following examples show how simply software developers can convert an existing drawing to another file format using the PHP command.
How to Export Existing Drawing to Another Format using PHP Commands?
storage->PutCreate($putRequest);
$request = new \Aspose\CAD\Model\Requests\GetDrawingSaveAsRequest($remoteName, $outputFormat, $folder=trim(self::$baseRemoteFolder . $subfolder), null, null);
list($response, $code, $headers) = $this->CAD->getDrawingSaveAsWithHttpInfo($request);
Assert::assertEquals(200, $code);
}
?>