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
remotes/origin/KDE/4.0
Albert Astals Cid 20 years ago
parent de4760de6e
commit fe0e06e54c
  1. 7
      generators/poppler/generator_pdf.cpp

@ -376,14 +376,7 @@ void PDFGenerator::loadPages(QVector<Okular::Page*> &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<Poppler::TextBox*> 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])

Loading…
Cancel
Save