[poppler] poppler/poppler: TextOutputDev.cc, 1.12, 1.13 TextOutputDev.h, 1.6, 1.7

Albert Astals Cid aacid at freedesktop.org
Tue Sep 20 08:08:55 PDT 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv5150/poppler

Modified Files:
	TextOutputDev.cc TextOutputDev.h 
Log Message:
TextPage *TextOutpudDev::takeText() from xpdf 3.01


Index: TextOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.cc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- TextOutputDev.cc	16 Sep 2005 18:12:02 -0000	1.12
+++ TextOutputDev.cc	20 Sep 2005 15:08:52 -0000	1.13
@@ -4125,3 +4125,11 @@
   return text->makeWordList(physLayout);
 }
 #endif
+
+TextPage *TextOutputDev::takeText() {
+  TextPage *ret;
+
+  ret = text;
+  text = new TextPage(rawOrder);
+  return ret;
+}

Index: TextOutputDev.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- TextOutputDev.h	24 Aug 2005 18:57:46 -0000	1.6
+++ TextOutputDev.h	20 Sep 2005 15:08:52 -0000	1.7
@@ -603,6 +603,10 @@
   TextWordList *makeWordList();
 #endif
 
+  // Returns the TextPage object for the last rasterized page,
+  // transferring ownership to the caller.
+  TextPage *takeText();
+
 private:
 
   TextOutputFunc outputFunc;	// output function



More information about the poppler mailing list