View Full Version : How does QPrinter work when outputing to PDF?

27th April 2013, 10:35
I'm a little confused by QPrinter when outputing to PDF.
It seems like there are two ways of doing this.
You can select a PDF virtual printer, which may be installed along with Acrobat Professional, then print to a document with the driver of the virtual printer.
You can either specify a file name and the output format of QPrinter, without selecting any printer. You can do this even on a computer with no virtual printer installed, which may implies that it works with its own engine.
Please tell me if I understand it correctly. BTW I'm working on Windows.

27th April 2013, 11:46
Yes, this is correct.
In the first case, from the applications point of view, you are printing to a real printer. That this printer is actually a something that generates PDF is of not concern to it.
In the second case you are using the same API but Qt internally generates PDF.