<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<version>23.1</version>
</dependency>
compile(group: 'com.aspose', name: 'aspose-cad', version: '23.1')
<dependency org="com.aspose" name="aspose-cad" rev="23.1">
<artifact name="aspose-cad" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-cad" % "23.1"
CAD File Conversion API for Java
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.CAD for Java allows developers to convert AutoCAD DWG and DXF files to PDF and Raster images. It is a native API and does not require AutoCAD or any other software to be installed. You can also convert the selected layers and layouts from the AutoCAD files. The conversion to PDF and Raster images is of very high quality.
CAD File Processing
- Adjust CAD drawing size.
- Convert CAD drawings to other file formats.
- Export 3D AutoCAD Images to PDF.
- Exporting CAD Layouts to PDF.
- Set timeout on save to avoid spending lot of time or consuming a lot of memory.
Supported Read CAD Formats
AutoCAD®: DWG, DGN, DWT, DWF, DWFx
Plotter Configuration: PC3
Data Model: IFC
CAD Data Exchange: IGS(IGES)
3D Printing: STL
Vector Based Plotter: PLT
3D Package Design: CF2
Others: Collada(DAE), DXB, 3DS, U3D
Supported Read & Write CAD Formats
AutoCAD®: DXF (Write feature is partially supported)
3D Geometry: OBJ
GL Binary: GLTF/GLB
Scalable Vector Graphics: SVG
Others: FBX, STEP(STP)
Save CAD files As
Fixed Layout: PDF
Vector Image: WMF, EMF
Raster Image: TIFF, JPEG, PNG, GIF, BMP, PSD, JP2, WEBP, DICOM
Supported Environments
- Microsoft Windows: Windows Desktop & Server (x86, x64)
- macOS: Mac OS X
- Linux: Ubuntu, OpenSUSE, CentOS, and others
- Java Versions:
J2SE 7.0 (1.7)
,J2SE 8.0 (1.8)
Get Started
Aspose.CAD Java APIs are hosted at the Aspose Repository. You can easily use Aspose.CAD for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.CAD for Java from Maven Repository documentation page.
Convert DXF Drawing to PNG Format
Image image = Image.load("template.dxf");
// create an instance of CadRasterizationOptions
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
// set page width & height
rasterizationOptions.setPageWidth(1200);
rasterizationOptions.setPageHeight(1200);
// create an instance of PngOptions for the resultant image
ImageOptionsBase options = new PngOptions();
// set rasterization options
options.setVectorRasterizationOptions(rasterizationOptions);
// save resultant image
image.save("output.png", options);
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Version | Release Date |
---|---|
23.1 | March 26, 2023 |
22.12 | March 26, 2023 |
22.11 | January 3, 2023 |
22.10 | January 3, 2023 |
22.9 | January 3, 2023 |
22.8 | January 3, 2023 |
22.7 | November 10, 2022 |
22.6.1 | August 29, 2022 |
22.6 | August 21, 2022 |
22.5 | August 21, 2022 |
22.4 | August 21, 2022 |
22.3 | June 22, 2022 |
22.2 | April 24, 2022 |
21.12 | March 15, 2022 |
22.1 | March 15, 2022 |
21.11 | January 13, 2022 |
21.10 | December 23, 2021 |
21.9 | December 23, 2021 |
21.5 | October 5, 2021 |
21.6 | October 5, 2021 |
21.7 | October 5, 2021 |
21.8 | October 5, 2021 |
21.4 | August 4, 2021 |
21.3 | July 14, 2021 |
21.1 | June 2, 2021 |
21.2 | June 2, 2021 |
20.12 | February 28, 2021 |
20.11 | December 10, 2020 |
20.10 | November 9, 2020 |
20.9 | October 6, 2020 |
20.8 | September 12, 2020 |
20.7 | August 6, 2020 |
20.6 | June 27, 2020 |
20.4 | May 8, 2020 |
20.3 | March 31, 2020 |
20.1 | January 25, 2020 |
19.9 | October 7, 2019 |
19.7 | August 18, 2019 |
19.5 | May 19, 2019 |
19.2 | April 21, 2019 |
18.12 | March 5, 2019 |
18.8 | January 18, 2019 |
18.3 | March 28, 2018 |
17.12 | December 21, 2017 |
17.9 | September 27, 2017 |
17.4 | April 28, 2017 |
17.02 | February 20, 2017 |
16.12.1 | December 29, 2016 |
16.12 | December 16, 2016 |
1.1.0 | September 16, 2016 |
1.0 | July 29, 2016 |
Aspose Total Aspose CAD Aspose Java API cad java library cad java class DWG DXF DGN IFC IGES STL DWT PLT DWF DWFx CFF2 OBJ PDF TIFF JPEG PNG GIF BMP Maven Windows Linux Mac J2SE drawing cad drawing raster image export 3D autocad cad layout mesh model ATTRIB MTEXT 3D solids conic sphere torus cylinder box wedge wired models 3D faces Unix