Hi, <br>I made a patch for PureData tha includes this code:<br><br>poppler::poppler()
<br>{
<br> //ctor
<br>}
<br>poppler::poppler(const char* file)
<br>{//ctor
<br> loaded=loadedpage=save=true;
<br> document= Poppler::Document::load(file);//open the document file
<br> if (!document || document->isLocked()) {
<br> loaded=false;
<br> delete document;
<br> }
<br> <br>}//end cosntructor
<br> <br> void poppler::selPage(int page){
<br> poppler::pdfPage=document->page(1); // Document starts at page 0
<br> if (pdfPage == 0) {
<br> loadedpage=false;
<br> }
<br> // Generate a QImage of the rendered page
<br> loaded=true;
<br> tmp = poppler::pdfPage->renderToImage(72,72,-1,-1,-1,-1);//
<br> if (tmp.isNull()) {<br> loaded=false;<br> }<br> <br> filename=QString("page.bmp");
<br> save=tmp.save(filename,"BMP",50);//savepage
<br> <br>}
<br> <br>poppler::~poppler()
<br>{
<br> //dtor
<br> delete poppler::pdfPage;
<br> delete poppler::document;
<br>}<br><br>With Debian this code works, but now with Ubuntu 11.4 doesn't work because it doesn't save the image.<br>Can anyone help me?<br>Sorry for my english<br><br>Mason Alessandro <br>