Results 1 to 2 of 2

Thread: Print a pdf file on a real printer

  1. #1
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Print a pdf file on a real printer

    Hello,

    I know QPrinter can print to pdf files, but that it *not* what I want. I want to let the user choose a pdf file and allow him to print it on a "real" printer. Is that possible?

    The workaround would be to open the pdf in an external application which has print support, printing directly would be nicer

    thanks in advance,
    Felix

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Print a pdf file on a real printer

    Not with out-of-the-box Qt. Poppler, MuPDF, and Ghostscript (probably others) offer open source options. You could also automate Adobe Reader on Windows using ActiveQt.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

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

    FelixB (11th July 2017)

Similar Threads

  1. how to print pdf file on usb printer through qt??
    By ftl_embedded in forum General Discussion
    Replies: 2
    Last Post: 2nd December 2015, 02:01
  2. How to print text file to printer ?
    By d_stranz in forum Qt Programming
    Replies: 5
    Last Post: 11th July 2012, 16:47
  3. QPainter problem with real printer on linux
    By corossig in forum Qt Programming
    Replies: 0
    Last Post: 22nd February 2012, 14:47
  4. How to print pdf file on Printer in windows
    By lekhrajdeshmukh in forum Qt Programming
    Replies: 9
    Last Post: 30th November 2011, 16:36
  5. How to Print a doc file (or binary file) to printer
    By rmagro in forum Qt Programming
    Replies: 15
    Last Post: 5th September 2008, 15:46

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.