pdf to dwg [Solved]

Hi,
How do i convert a pdf file (that is exported and shared from a dwg file) to dwg using qcad api or script. I know that qcad allows to open the pdf from the gui. I am interested in writing a script that can be used from command line

I am using windows/linux and on qcad 3.28.1

Thanks,
Arun

Hi Arun,

You can already convert a pdf to dwg with the QCAD command-line tool dwg2dwg / pdf2dwg.

Oh thanks Husky. should have checked the command line tools better :laughing:

Arun,
forgive me for asking, but wouldn’t those back and forth conversions result in significant data loss?
Referring to layers, blocks and so on.

If considered solved then please prefix the title of your first post with [Solved] by editing it.

Regards,
CVH

CVH, sorry for the late response.
I am yet to test this command line tool. AFAIK, if the conversion is from a vector pdf, there shouldn’t be a data loss (i am guessing :slight_smile: ).
Will test this out and post results here.

EDIT: You are right. There is a lot of data loss. Any idea if this can be avoided while converting from a pdf?

Arun