I'm trying to compile pdf2xml on a Mac, using xpdf installing from MacPorts, and I get this error: src/XmlOutputDev.h:344: error: 'GString TextWord::getFontName()' and 'char TextWord::getFontName()' cannot be overloaded
Anonymous
can you comment the instruction #if TEXTOUT_WORD_LIST ...#endif and try again?
It didn't work to comment out all the TEXTOUT_WORD_LIST parts - there are unconditionalized references to isItalic() etc, but commenting out just the getFontName lines worked.
It was also necessary to link to a library called "libpaper" which seems to be used by the version of xpdf I have (3.02).
Thanks for your comments. To my knowledge you're the first trying to compile it on Mac.