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