From fe0e06e54cc3b8fd63282a46ced5eca31f9d1348 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 19 Oct 2006 17:05:58 +0000 Subject: [PATCH] There is no need to load all text at the beginning as okular does the text extraction on-demand svn path=/trunk/playground/graphics/okular/; revision=597226 --- generators/poppler/generator_pdf.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/generators/poppler/generator_pdf.cpp b/generators/poppler/generator_pdf.cpp index 7660bfa6c..63086edd5 100644 --- a/generators/poppler/generator_pdf.cpp +++ b/generators/poppler/generator_pdf.cpp @@ -376,14 +376,7 @@ void PDFGenerator::loadPages(QVector &pagesVector, int rotation, #endif // kWarning() << page->width() << "x" << page->height() << endl; -// need a way to find efficient (maybe background textpage generation) kDebug() << "load page " << i << " with rotation " << rotation << " and orientation " << orientation << endl; - docLock.lock(); - QList textList = p->textList((Poppler::Page::Rotation)rotation); - docLock.unlock(); - page->setSearchPage(abstractTextPage(textList, page->height(), page->width(), page->totalOrientation())); - - qDeleteAll(textList); delete p; if (clear && pagesVector[i])