> It's possible load pdf file to QByteArray? The simple code below is not work: But your code works perfectly. You successfully loaded the pdf file into your QByteArray. But I suppose what you really wanted, is that your document is rendered. Sorry, QByteArray is no pdf renderer. Maybe this will help you: http://doc.qt.digia.com/qq/qq27-poppler.html Guido