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

Jason Crain jason at aquaticape.us
Wed Feb 19 07:44:31 PST 2014


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.


More information about the poppler mailing list