PDF rendering with poppler libraries
-
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? -
Hi and welcome to devnet,
Just an educated guess but did you check that you have all needed fonts installed on your target ?
-
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.
-
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
@ -
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 ?
-
When I run debugger it gives the above error message as stated in my previous comment.
-
Are you running a debug build ?
-
Yes I am running debug build only.
-
And you don't have a backtrace at the crash point ?
-
Hi
Please make the following changes.
void Window::openFile()
{- 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";
*/ - Change the path variable value to "./somedocument.pdf"
documentWidget->setDocument(path);
hope this will help.
- Comment the following code.