pdf to dwg [Solved]

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
arun
Active Member
Posts: 34
Joined: Tue May 09, 2023 9:04 am

pdf to dwg [Solved]

Post by arun » Mon May 22, 2023 5:25 am

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
Last edited by arun on Tue Jun 06, 2023 10:17 am, edited 1 time in total.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: pdf to dwg

Post by Husky » Mon May 22, 2023 6:05 am

Hi Arun,
arun wrote:
Mon May 22, 2023 5:25 am
I am interested in writing a script that can be used from command line
You can already convert a pdf to dwg with the QCAD command-line tool dwg2dwg / pdf2dwg.

https://qcad.org/en/products/qcad-comma ... _/_pdf2dwg
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

arun
Active Member
Posts: 34
Joined: Tue May 09, 2023 9:04 am

Re: pdf to dwg

Post by arun » Mon May 22, 2023 6:15 am

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

CVH
Premier Member
Posts: 3419
Joined: Wed Sep 27, 2017 4:17 pm

Re: pdf to dwg

Post by CVH » Mon May 22, 2023 7:53 am

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

arun
Active Member
Posts: 34
Joined: Tue May 09, 2023 9:04 am

Re: pdf to dwg

Post by arun » Tue Jun 06, 2023 10:17 am

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 :) ).
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

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”