Browse our Products

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

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

VersionRelease Date
24.6.1September 19, 2024
24.5September 19, 2024
24.6September 14, 2024
24.4August 3, 2024
24.3April 26, 2024
24.2April 26, 2024
24.1April 26, 2024
23.12April 18, 2024
23.11April 17, 2024
23.10November 29, 2023
23.9November 28, 2023
23.8November 18, 2023
23.7September 30, 2023
23.6September 29, 2023
23.5September 23, 2023
23.4September 13, 2023
23.3June 13, 2023
23.2June 13, 2023
23.1March 26, 2023
22.12March 26, 2023
22.11January 3, 2023
22.10January 3, 2023
22.9January 3, 2023
22.8January 3, 2023
22.7November 10, 2022
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
22.1March 15, 2022
21.12March 15, 2022
21.11January 13, 2022
21.10December 23, 2021
21.9December 23, 2021
21.8October 5, 2021
21.7October 5, 2021
21.6October 5, 2021
21.5October 5, 2021
21.4August 4, 2021
21.3July 14, 2021
21.2June 2, 2021
21.1June 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
FileClassifierSize
aspose-cad-19.2-javadoc.jarjavadoc3.22 MB
aspose-cad-19.2.jar25.63 MB
aspose-cad-19.2.pom451 bytes

 
 English