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.
Directory | Description |
---|---|
Examples | A collection of Java examples that help you learn the product features. |
- 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.
AutoCAD: DWG, DWT, DWF, DWXF, IFC, PLT
MicroStation: DGN
The Advanced Visualizer: OBJ
Other: STL, IGES, CFF2
Fixed Layout: PDF
Raster Images: PNG, BMP, TIFF, JPEG, GIF
CAD: DXF
(Write features is partially supported.)
- 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)
Aspose hosts all Java APIs 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.
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);
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License