I want to generate a dwg file in runtime using java. Is it possible? I tried searching it on internet for hours but it only allows to read an existing dwg file and not to create one from scratch in runtime.
The main goal of this is I want to convert a pdf to dwg file to be opened in Autocad. I am aware that this feature is now available in latest versions of autocad but I want to create it myself.
But since I haven't found any direct convertion from PDF to DWG
What I am trying for now is
- read a pdf document
- create an empty dwg file
- transfer all the contents of the PDF to the empty dwg file.
- save dwg file.