--- xpdf/TextOutputDev.h.orig Sun Dec 17 00:26:20 2006 +++ xpdf/TextOutputDev.h Sun Dec 17 00:27:45 2006 @@ -26,6 +26,15 @@ class GfxState; class UnicodeMap; +class TextWord; +class TextPool; +class TextLine; +class TextLineFrag; +class TextBlock; +class TextFlow; +class TextWordList; +class TextPage; + //------------------------------------------------------------------------ typedef void (*TextOutputFunc)(void *stream, char *text, int len); @@ -553,6 +562,10 @@ // order (if both flags are false). TextWordList *makeWordList(); #endif + + // Returns the TextPage object for the last rasterized page, + // transferring ownership to the caller. + TextPage *takeText(); private: