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.
An overview of the main conversion and rendering capabilities of API.
Aspose.CAD for Java supports the JDK 1.6 and above.
API supported file formats are listed below.
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
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.
// 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); image.save(dir + "output.pdf", pdfOptions);
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.