×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    8

    How to open pdf file in Qt

    Hi,
    I am trying to show pdf file in qml based application. As far as I know, there is no api to handle pdf in Qt yet. So is there a way to use built-in application to open pdf files? I aware that Harmattan devices have an application called "Documents" that can open pdf files. The pdf file is in binary format.

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: How to open pdf file in Qt

    Hi,
    To read PDFs you need Poppler.

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to open pdf file in Qt

    Poppler is a library, which is used to render PDF files and supposed to be used in your application. However, if your goal is just open PDF in external application it will be gazillions times easier (and especially taking into account you are using QtQuick) to use Qt.openUrlExternally
    http://doc.qt.nokia.com/4.7-snapshot...ernally-method

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    8

    Re: How to open pdf file in Qt

    Qt.openURLExternally() is exactly what I need. Thanks a lot.

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How to open pdf file in Qt

    Qt:penUrlExternally () open url in an external application, based on the user's desktop preferences. I think it work fine if you have installed (or device have pre-installed) application to view .pdf file. It may not work if you don't have any application installed that support .pdf viewer. Just check it once.

Similar Threads

  1. How to open a pdf file using J2ME in Symbian mobile?
    By 55085058 in forum Mobile Java General
    Replies: 3
    Last Post: 2010-06-20, 15:34
  2. How to open a pdf file on Nokia Mobile Browser 4.0
    By vanita_jain in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2009-09-25, 06:48
  3. how to open a pdf file using adobe reader through open c
    By gurvindersinghdahiya in forum Open C/C++
    Replies: 0
    Last Post: 2009-07-31, 09:09
  4. Replies: 1
    Last Post: 2009-05-20, 08:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×