I am looking for the best library to write a dxf file in java Before trying to convert png image to dxf but I can't, so now I want to write the image directly My need is a library that can draw lines and rotate them at an angle.

1 Answer 1


You could try jdxf: https://jsevy.com/wordpress/index.php/java-and-android/jdxf-java-dxf-library/ You use standard AWT Graphics drawing commands on an instance of the DXFGraphics subclass just as you do for regular Graphics drawing. DXFGraphics generates a DXF file corresponding to the drawing operations. There's example code at the link above.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.