[Poppler-bugs] [Bug 27197] fontName in Poppler::TextBox

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 22 03:31:20 PDT 2010


http://bugs.freedesktop.org/show_bug.cgi?id=27197





--- Comment #2 from couronne <olivier.couronne at gmail.com>  2010-03-22 03:31:20 PST ---
(In reply to comment #1)
> What is your use case?
> 
> Would you be able to contribute a patch?
> 

In qt4/src/poppler-page.cc,
  in QList<TextBox*> Page::textList(Rotation rotate) const,
     in for (int i = 0; i < word_list->getLength(); i++) {
       after text_box->m_data->charBBoxes.reserve(word->getLength());
put :
text_box->fontName=QString(word->getFontName()->getCString());

*****************************************
In poppler-qt4.h
  in the TextBox class
add

private:
QString fontName;

public:
QString getFontName();


***************************************

Use Case:

I want to parse scientific pdf articles, and the font would be a useful
information.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list