Results 1 to 5 of 5

Thread: Tools / Libraries for printing PDF files?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Tools / Libraries for printing PDF files?

    Does anybody have any experience with PDF?

    I have a pdf file which I want to print (to an HP USB Printer) programatically, and in a way that's transparent to the user: as in 'The user just presses "Print report" and the PDF file is printed automatically (it is NEVER displayed on screen, I recieve this file via network and I just want to send it straight to printer).

    Does anyone have any idea on how to achieve this?
    Ideally I'm looking a dll or something to use in a manner such as
    Qt Code:
    1. CrazyPDFLib PdfObject;
    2. PdfObject->sendToPrinter(wackyParameters);
    To copy to clipboard, switch view to plain text mode 

    Otherwise, some sort of information about libraries that might do something like that is also welcome.

    Also, if you know command prompt applications that do something similar, I might also be able to use.

    Platform details:
    *Windows 7
    *Qt 4.8.2
    *Visual Studio 2010
    *Printer, if it is of any use, is HP Officejet Pro 8100 (via USB port). Printer drivers are installed.


    If I'm not quite clear (which is a possibility), please do let me know and I will try to elaborate on whatever's left unclear.

    Regards,
    Alejandro
    Last edited by alitoh; 6th March 2013 at 22:18.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Tools / Libraries for printing PDF files?

    Which platform?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tools / Libraries for printing PDF files?

    *OP UPDATED*

    Windows 7, qt 4.8.2, printer, if it is of any use, is HP Officejet Pro 8100 (via USB port). Printer drivers are installed.
    VisualStudio 2010.


    Also, and to be honest, I thought it would be rather straightforward to use some adobe library, but the only one I found was AcroPDF and it's an ActiveX object that I can't seem to use in my non-MFC class/Application
    Last edited by alitoh; 6th March 2013 at 22:18.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Tools / Libraries for printing PDF files?

    You can surely use poppler library and QPrinter but there probably is some Windows equivalent of lpr that can do what you want. Qt doesn't really offer anything in this regard by itself (apart QPrinter of course).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tools / Libraries for printing PDF files?

    but the only one I found was AcroPDF and it's an ActiveX object that I can't seem to use in my non-MFC class/Application
    Take a look at QAxObject (http://qt-project.org/doc/qt-4.8/qaxobject.html)
    I've succesfully used it for Excel interop.

Similar Threads

  1. QPrintPreview File, printing PDF Files
    By opra in forum Qt Programming
    Replies: 7
    Last Post: 20th June 2013, 16:00
  2. Draw a 3d Animated Body Skeleton? Libraries/tools to use?
    By breotone in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2012, 13:23
  3. Replies: 1
    Last Post: 15th September 2011, 21:25
  4. How to add external Header files and libraries?
    By askbapi in forum Installation and Deployment
    Replies: 6
    Last Post: 30th September 2010, 17:33
  5. Replies: 6
    Last Post: 10th November 2009, 15:18

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
  •  
Qt is a trademark of The Qt Company.