Java AutoCAD Conversion APIs

Convert DWG, DXF, STL documents to PDF and Raster Images without any CAD software dependencies.

  Download Free Trial
Aspose.CAD for Java

Aspose.CAD for Java


Aspose.CAD for Java is an advanced AutoCAD conversion native API without any software dependencies. It allows developers the conversion of DWF, DWG and DXF files to raster image formats and PDF. During the conversion process, developers can choose and convert specific layers and layouts as well as keep track of the file conversion process.


Advanced Java AutoCAD Library Features



Current versions of DXF and DWG documents supported


AutoCAD documents conversion to PDF


AutoCAD files rendering to Raster images


Choose and convert specific layouts


Choose and convert specific layers


Track the document conversion process

CAD to PDF Format Conversion

Aspose.CAD for Java API supports converting CAD drawings to PDF. Developers can easily adjust drawing options like draw color, background color, page size, scale mode and so on before conversion.

Save CAD in PDF format - Java

// load CAD for conversion
Image image = Image.load(dir + "template.dwg");
// create instance & set resultant page size
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageSize(new SizeF(1200, 1200));
// save PDF
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions); + "output.pdf", pdfOptions);

Render AutoCAD Drawings in Raster Image Formats

Having a high fidelity rendering engine at its core, API can convert AutoCAD drawings to various raster images including BMP, GIF, TIFF, PNG & JPEG without the need for any other software or library.


Support and Learning Resources


Aspose.CAD offers individual native APIs for other popular development environments as listed below: