Hello friends,

simple question: How can I add a bookmark information to my pdf??

Here is my Code:
Qt Code:
  1. QPrinter printer;
  2. printer.setOrientation(QPrinter::Portrait);
  3. printer.setOutputFileName("Sendungen.pdf");
  4. printer.setOutputFormat(QPrinter::PdfFormat);
  5. if (db.open()){
  6. QSqlQuery query( "select Statement ");
  7. query.setForwardOnly(true);
  8. while(query.next()){
  9. QSqlRecord record = query.record();
  10. myimage.loadFromData(query.value(record.indexOf("imgData" ) ).toByteArray(),0);
  11. myimage.convertToFormat(QImage::Format_Mono);
  12. //p.setRenderHint(QPainter::Antialiasing, true);
  13. p.begin(&printer);
  14. p.drawImage(0, 0, myimage);
  15. printer.newPage();
  16. }
  17. p.end();
  18. }
To copy to clipboard, switch view to plain text mode 

There are many pictures in the pdf, and I search for a method to add a bookmark information per page. Is this possible??