# DXF to PDF

**URL:** http://forum.qcad.org/t/dxf-to-pdf/2545
**Category:** dxflib 'How Do I' Questions
**Created:** [February 16, 2016, 7:43am UTC](http://forum.qcad.org/t/dxf-to-pdf/2545 "2016-02-16T07:43:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![slymn](http://forum.qcad.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@slymn](http://forum.qcad.org/u/slymn)
#### Post date: [February 16, 2016, 7:43am UTC](http://forum.qcad.org/t/dxf-to-pdf/2545/1 "2016-02-16T07:43:15Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/14926_2.png) [@andrew](http://forum.qcad.org/u/andrew)
#### Post date: [February 16, 2016, 7:51am UTC](http://forum.qcad.org/t/dxf-to-pdf/2545/2 "2016-02-16T07:51:22Z")

</div>

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-documentation/qcad-command-line-tools](http://www.qcad.org/en/qcad-documentation/qcad-command-line-tools)

---

<div class="post-metadata">

### Author: ![slymn](http://forum.qcad.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@slymn](http://forum.qcad.org/u/slymn)
#### Post date: [February 16, 2016, 1:58pm UTC](http://forum.qcad.org/t/dxf-to-pdf/2545/3 "2016-02-16T13:58:50Z")

</div>

Thanks Andrew

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

---

<div class="post-metadata">

### Author: ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/14926_2.png) [@andrew](http://forum.qcad.org/u/andrew)
#### Post date: [February 17, 2016, 7:49am UTC](http://forum.qcad.org/t/dxf-to-pdf/2545/4 "2016-02-17T07:49:55Z")

</div>

> [@slymn++](#):
>
> 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](https://www.google.com/?q=c%23%20run%20command) and run dwg2pdf with the appropriate parameters.
