From 7087f20f238ccd0b1ab97e977bc80789f1fdbdec Mon Sep 17 00:00:00 2001 From: Fabio D'Urso Date: Tue, 22 May 2012 13:52:28 +0200 Subject: [PATCH] poppler gen: Removed block of old debug and TODO comments --- generators/poppler/generator_pdf.cpp | 34 ---------------------------- 1 file changed, 34 deletions(-) diff --git a/generators/poppler/generator_pdf.cpp b/generators/poppler/generator_pdf.cpp index ce82568a9..851e0901f 100644 --- a/generators/poppler/generator_pdf.cpp +++ b/generators/poppler/generator_pdf.cpp @@ -1364,40 +1364,6 @@ void PDFGenerator::addAnnotations( Poppler::Page * popplerPage, Okular::Page * p foreach(Poppler::Annotation *a, popplerAnnotations) { - //a->window.width = (int)(page->width() * a->window.width); - //a->window.height = (int)(page->height() * a->window.height); - //a->window.width = a->window.width < 200 ? 200 : a->window.width; - // a->window.height = a->window.height < 120 ? 120 : a->window.height; - // resize annotation's geometry to an icon - // TODO okular geom.right = geom.left + 22.0 / page->width(); - // TODO okular geom.bottom = geom.top + 22.0 / page->height(); - /* - QString szanno; - QTextStream(&szanno)<<"PopplerAnnotation={author:"<author - <<", contents:"<contents - <<", uniqueName:"<uniqueName - <<", modifyDate:"<modifyDate.toString("hh:mm:ss, dd.MM.yyyy") - <<", creationDate:"<creationDate.toString("hh:mm:ss, dd.MM.yyyy") - <<", flags:"<flags - <<", boundary:"<boundary.left()<<","<boundary.top()<<","<boundary.right()<<","<boundary.bottom() - <<", style.color:"<style.color.name() - <<", style.opacity:"<style.opacity - <<", style.width:"<style.width - <<", style.LineStyle:"<style.style - <<", style.xyCorners:"<style.xCorners<<","<style.yCorners - <<", style.marks:"<style.marks - <<", style.spaces:"<style.spaces - <<", style.LineEffect:"<style.effect - <<", style.effectIntensity:"<style.effectIntensity - <<", window.flags:"<window.flags - <<", window.topLeft:"<<(a->window.topLeft.x()) - <<","<<(a->window.topLeft.y()) - <<", window.width,height:"<window.width<<","<window.height - <<", window.title:"<window.title - <<", window.summary:"<window.summary - <<", window.text:"<window.text; - kDebug(PDFDebug) << "astario: " << szanno; */ - //TODO add annotations after poppler write feather is full suported bool doDelete = true; Okular::Annotation * newann = createAnnotationFromPopplerAnnotation( a, &doDelete ); if (newann)