[poppler] poppler/TextOutputDev.h

Albert Astals Cid aacid at kemper.freedesktop.org
Mon May 12 06:42:12 PDT 2008


 poppler/TextOutputDev.h |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e3e4113c73128f49f99289b592446d4382b5d65c
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon May 12 15:39:43 2008 +0200

    Add getters to some TextBlock members.
    
    Needed by some reader using poppler internals, bad you!

diff --git a/poppler/TextOutputDev.h b/poppler/TextOutputDev.h
index db40a44..711aee3 100644
--- a/poppler/TextOutputDev.h
+++ b/poppler/TextOutputDev.h
@@ -339,6 +339,11 @@ public:
   // Get the next TextBlock on the linked list.
   TextBlock *getNext() { return next; }
 
+  void getBBox(double *xMinA, double *yMinA, double *xMaxA, double *yMaxA)
+    { *xMinA = xMin; *yMinA = yMin; *xMaxA = xMax; *yMaxA = yMax; }
+
+  int getLineCount() { return nLines; }
+
 private:
 
   TextPage *page;		// the parent page


More information about the poppler mailing list