AutoCad files can be viewed within webpages or desktop application after rendering to images or PDF as well as some more cases to view the CAD files without requiring AutoCAD or any other rendering workflow. Java CAD library facilitates to process and render CAD drawings and conversion procedures are highly configurable due to its CadRasterizationOptions class.
Convert CAD to Images
To convert the AutoCad formats, Load the source format via Image.load. Create the CadRasterizationOptions class object and developers can use it to set optional features for rendering process according to the application requirement. Set the relevant settings such as width, height, background color and more. Create the relevant PDF or images options for assigning the setting in previous step. Check the list from the sub classes list of ImageOptionsBase class for relevant target file options. Finally call the save method with output file and image or PDF options as parameters.