Results 1 to 5 of 5

Thread: print to pdf a doc file

  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face print to pdf a doc file

    Hi Guys,

    Is it possible using Qt to load a Windows .doc file and then print it to a pdf file?

    printer.setOutputFormat(QPrinter::PdfFormat);
    printer.setOutputFileName(fileName.pdf);

    If so, which version of Qt can load (and then print to pdf) doc files

    Thank you in advance,,

    Roby

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: print to pdf a doc file

    No, Qt has nothing to with Microsoft's .doc files.
    J-P Nurmi

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: print to pdf a doc file

    And what about OpenOffice's ODF? Does Qt know how to work with it? Thanks.
    I'm a rebel in the S.D.G.

  4. #4
    Join Date
    Jan 2006
    Posts
    132
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: print to pdf a doc file

    4.5 will be able to write ODF, so I think it is safe to assume it can also be read:

    http://doc.trolltech.com/qq/qq27-odfwriter.html

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

    Default Re: print to pdf a doc file

    No, Qt 4.5 won't read ODF files.

Similar Threads

  1. How to print only the file name of a path
    By franco.amato in forum Qt Programming
    Replies: 3
    Last Post: 2nd October 2008, 21:28
  2. 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
  3. how to print an html file?
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 31st August 2008, 16:50
  4. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.