reactivate the Annotation's loading

svn path=/trunk/playground/graphics/okular/; revision=582610
This commit is contained in:
Pino Toscano 2006-09-09 21:27:50 +00:00
parent 5d7dd80086
commit f311b04ed3

View file

@ -980,11 +980,13 @@ void PDFGenerator::addAnnotations( Poppler::Page * popplerPage, KPDFPage * page
kDebug( )<<"astario: "<<szanno<<endl;*/
// this is uber ugly but i don't know a better way to do it without introducing a poppler::annotation dependency on core
//TODO add annotations after poppler write feather is full suported
/*QDomDocument doc;
QDomDocument doc;
QDomElement root = doc.createElement("root");
doc.appendChild(root);
a->store( root, doc );
page->addAnnotation( new Annotation( doc ) );*/
Poppler::AnnotationUtils::storeAnnotation(a, root, doc);
Annotation * newann = AnnotationUtils::createAnnotation(root);
if (newann)
page->addAnnotation(newann);
}
qDeleteAll(popplerAnnotations);
}