mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 19:50:27 +00:00
reactivate the Annotation's loading
svn path=/trunk/playground/graphics/okular/; revision=582610
This commit is contained in:
parent
5d7dd80086
commit
f311b04ed3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue