generic method to extract text layer of a document
authorThomasV <thomasv@users.mediawiki.org>
Wed, 23 Sep 2009 12:28:19 +0000 (12:28 +0000)
committerThomasV <thomasv@users.mediawiki.org>
Wed, 23 Sep 2009 12:28:19 +0000 (12:28 +0000)
includes/media/Generic.php

index a9c681e..b1c6394 100644 (file)
@@ -179,6 +179,14 @@ abstract class MediaHandler {
                );
        }
 
+       /**
+        * Generic getter for text layer.
+        * Currently overloaded by PDF and DjVu handlers
+        */
+       function getPageText( $image, $page ) {
+               return false;
+       }
+
        /**
         * Get an array structure that looks like this:
         *