Results 1 to 2 of 2

Thread: How does QPrinter work when outputing to PDF?

  1. #1
    Join Date
    Mar 2013
    Posts
    28
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default How does QPrinter work when outputing to PDF?

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How does QPrinter work when outputing to PDF?

    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.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    hind (30th April 2013)

Similar Threads

  1. Replies: 0
    Last Post: 12th July 2011, 08:20
  2. Replies: 2
    Last Post: 15th November 2010, 17:44
  3. QPrinter bug?
    By lni in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2009, 04:52
  4. Printing via QPrinter doesnt work
    By mSergey in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2008, 19:00
  5. QPrinter::PrinterMode and QPrinter::setResolution??
    By SkripT in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2006, 11:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.