<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-cad</artifactId>
    <version>22.6.1</version>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-cad', version: '22.6.1')
copied!  
<dependency org="com.aspose" name="aspose-cad" rev="22.6.1">
    <artifact name="aspose-cad" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-cad" % "22.6.1"
copied!  

CAD File Conversion API for Java

banner

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

Read CAD Formats

AutoCAD: DWG, DWT, DWF, DWXF, IFC, PLT
MicroStation: DGN
The Advanced Visualizer: OBJ
Other: STL, IGES, CFF2

Save CAD As

Fixed Layout: PDF
Raster Images: PNG, BMP, TIFF, JPEG, GIF

Read & Write

CAD: DXF
(Write features is partially supported.)

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.BarCode 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

VersionRelease Date
22.6.1August 29, 2022
22.6August 21, 2022
22.5August 21, 2022
22.4August 21, 2022
22.3June 22, 2022
22.2April 24, 2022
21.12March 15, 2022
22.1March 15, 2022
21.11January 13, 2022
21.10December 23, 2021
21.9December 23, 2021
21.5October 5, 2021
21.6October 5, 2021
21.7October 5, 2021
21.8October 5, 2021
21.4August 4, 2021
21.3July 14, 2021
21.1June 2, 2021
21.2June 2, 2021
20.12February 28, 2021
20.11December 10, 2020
20.10November 9, 2020
20.9October 6, 2020
20.8September 12, 2020
20.7August 6, 2020
20.6June 27, 2020
20.4May 8, 2020
20.3March 31, 2020
20.1January 25, 2020
19.9October 7, 2019
19.7August 18, 2019
19.5May 19, 2019
19.2April 21, 2019
18.12March 5, 2019
18.8January 18, 2019
18.3March 28, 2018
17.12December 21, 2017
17.9September 27, 2017
17.4April 28, 2017
17.02February 20, 2017
16.12.1December 29, 2016
16.12December 16, 2016
1.1.0September 16, 2016
1.0July 29, 2016