[poppler] poppler-qt5 Ubuntu 13.10 failed to load .pdf files...

2014-02-19 Thread JIA Pei
Hi, all:


My environment:

OS: ubuntu 13.10
QT5
poppler-qt5: libpoppler-qt5-dev -- development files (Qt 5 interface)


And, I just want to open an .pdf file with the following line:

Poppler::Document* m_pDocument = Poppler::Document::load();

this-m_qtFileName is of value \home\jiapei\Documents\CloudStorage.pdf


the value of m_pDocument is always NULL, namely 0x0.


Did anybody successfully load a .pdf file under ubuntu 13.10 with
poppler-qt5 ?
Please give me a hand...


Thank you very much.

-- 

Pei JIA

Email: jp4w...@gmail.com
cell:+1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
___
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] poppler-qt5 Ubuntu 13.10 failed to load .pdf files...

2014-02-19 Thread Jason Crain

On 2014-02-19 05:52, JIA Pei wrote:

And, I just want to open an .pdf file with the following line:

Poppler::Document* m_pDocument = Poppler::Document::load();

this-m_qtFileName is of value 
\home\jiapei\Documents\CloudStorage.pdf


the value of m_pDocument is always NULL, namely 0x0.

Did anybody successfully load a .pdf file under ubuntu 13.10 with
poppler-qt5 ?
Please give me a hand... 


Try using a forward slash '/' instead of a backslash in the file path.  
You should probably call it like:


Poppler::Document* m_pDocument = 
Poppler::Document::load(/home/jiapei/Documents/CloudStorage.pdf)


and see if there are any errors printed to the console.
___
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler