Hi

I'm working on PDF to Image Converter

I made tool which to select Folder or Directory then It will convert each PDF file to an image..
But I still have some problems.


Qt Code:
  1. QString fileName = fileInfo.fileName();
  2.  
  3. QPixmap pdfFile;
  4. QPixmap scaledsimage;
  5. int page = 1;
  6. int large = 1000;
  7.  
  8. QFileInfo fixurl(lineEditSorceFolder->text()+"/"+fileName);
  9.  
  10.  
  11.  
  12. pdfFile = LoadPDF( fixurl.absoluteFilePath() ,page,large);
  13.  
  14.  
  15.  
  16. QByteArray bytes;
  17. QBuffer buffer(&bytes);
  18. buffer.open(QIODevice::ReadWrite);
  19. scaledsimage.save(&buffer,"PNG",100);
To copy to clipboard, switch view to plain text mode 

It's seem It dose the PDF.. but
the image dose not come out at all..

I have tested to draw something on the image and it dose work.

Please, I need help.. I do not know if there is any easier way to Process that..

Best Regards