Results 1 to 8 of 8

Thread: Read PDF

  1. #1

    Lightbulb Read PDF

    Hi all;

    Is there any way to read the content of pdf file in QT?

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Read PDF

    That depends on what you are trying to retrieve from the file

  3. #3

    Default Re: Read PDF

    For example I want to retrieve text or image? How can I do that?

  4. #4
    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: Read PDF

    There is no easy way to do that. You'd have to parse the PDF file yourself or interface with applications such as Adobe Acrobat that would do it for you.
    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
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Read PDF

    Don't know if this can help:

    http://en.wikipedia.org/wiki/Poppler_(software)

  6. #6
    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: Read PDF

    From what I remember poppler is too limited to return things such as images although you could try with Poppler::EmbeddedFile.
    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.


  7. #7
    Join Date
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Read PDF

    I never wrote anything using Poppler myself, I just suggested it thinking it might me useful.

  8. #8
    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: Read PDF

    I did but I was only rendering PDF files to images to provide a pdf backend for QImageLoader.
    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.


Similar Threads

  1. How to read a CD
    By skepticalgeek in forum Qt Programming
    Replies: 7
    Last Post: 22nd March 2010, 08:27
  2. How to read key from registry
    By sawerset in forum Qt Programming
    Replies: 1
    Last Post: 9th December 2008, 19:58
  3. Read URL from a browser using Qt
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 08:11
  4. Best way to read xml
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 17:38
  5. How to read CD with read?
    By vishal.chauhan in forum Qt Programming
    Replies: 6
    Last Post: 29th June 2007, 08:20

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.