Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. PDF rendering with poppler libraries
QtWS25 Last Chance

PDF rendering with poppler libraries

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 3 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dharmender
    wrote on last edited by
    #1

    Hi
    I am using the example code posted @http://doc.qt.digia.com/qq/ for Displaying PDF files with qt.
    This example works fine and rendering the pdf documents tested this in Ubuntu.

    I have cross compiled poppler library for ARM to use in a embedded control panel.
    The control panel is able to load the pdf but the font is not rendering.
    Can any one help?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Just an educated guess but did you check that you have all needed fonts installed on your target ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChaitraMohan
        wrote on last edited by
        #3

        Hi,

        I am using the same code posted http://doc.qt.digia.com/qq/ for displaying PDF with Qt.

        It has compiled successfully but when I run, without displaying anything it is exiting by giving the statement as below:
        @The program has unexpectedly finished@

        Can I know the reason for this?

        Thank you.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChaitraMohan
          wrote on last edited by
          #4

          Hi,

          This is the error I get when I run in the debug mode:

          @The inferior stopped because it received a signal from the Operating System.
          Signal name : SIGABRT
          Signal meaning : Aborted
          @

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Looks like one of my message disappeared…

            Anyway, if you have the debugger running it should have stopped at the point of failure.

            Where is it ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChaitraMohan
              wrote on last edited by
              #6

              When I run debugger it gives the above error message as stated in my previous comment.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Are you running a debug build ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  ChaitraMohan
                  wrote on last edited by
                  #8

                  Yes I am running debug build only.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    And you don't have a backtrace at the crash point ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dharmender
                      wrote on last edited by
                      #10

                      Hi
                      Please make the following changes.
                      void Window::openFile()
                      {

                      1. Comment the following code.
                        /*
                        QString path = QFileDialog::getOpenFileName(this, tr("Open PDF File"),
                        /lastPath/"./", tr("PDF files (*.pdf)"));
                        if (path.isEmpty())
                        return;
                        qDebug() << "open file is executing";
                        char val = getchar();
                        qDebug() << "getchar executed";
                        */
                      2. Change the path variable value to "./somedocument.pdf"
                        documentWidget->setDocument(path);

                      hope this will help.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved