DXF to PDF

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

DXF to PDF

Post by slymn++ » Tue Feb 16, 2016 8:43 am

Hi all,

I dont use QCAD, I am c++ programmer.
I am developing a program. I need to convert DXFs to PDFs.

For example I have 1000 piece of dxf files then I want to convert to PDF files.
My program flow diagram -> Only I select dxf files then clik export pdf button.

For this, Can I using QCAD API?

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: DXF to PDF

Post by andrew » Tue Feb 16, 2016 8:51 am

Yes. You'd have to load the DXF file into a document, create a graphics view (in memory) and then print that using the Print class (note that Print is a script class).

Are you aware of the dwg2pdf command line tool which does exactly that?

More information about the QCAD Professional command line tools:
http://www.qcad.org/en/qcad-documentati ... line-tools

slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

Re: DXF to PDF

Post by slymn++ » Tue Feb 16, 2016 2:58 pm

Thanks Andrew

Alrights, I am using C# .net
How can I using QCAD.
have you simple project?

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: DXF to PDF

Post by andrew » Wed Feb 17, 2016 8:49 am

slymn++ wrote:Alrights, I am using C# .net
How can I using QCAD.
have you simple project?
dwg2pdf is a command line tool, a standalone application that can be run without having to deal with libraries, etc. You can simply start an external process in your application and run dwg2pdf with the appropriate parameters.

Post Reply

Return to “dxflib 'How Do I' Questions”