Example #1
0
 /**
  * Creates a new PdfProcessor object using the test.pdf
  * file made from the seekquarry landing page
  */
 function setUp()
 {
     $pdf_object = new PdfProcessor();
     $url = "http://www.yioop.com/test.pdf";
     $filename = BASE_DIR . "/tests/test_files/test.pdf";
     $page = file_get_contents($filename);
     $summary = $pdf_object->process($page, $url);
     $this->test_objects['summary'] = $summary;
 }
 protected function getBookCss()
 {
     $bookCss = parent::getBookCSS();
     if ($this->createTextOverlay) {
         $bookCss = str_replace("  color:transparent;\n", '', $bookCss);
         // add a single selector to allow book developers to toggle between red text and invisible text
         $invisible = ".textframe { /* make all text invisible: rgba(255,0,0,0) */\n/* make all text red:       rgb(255,0,0) */\n  color: rgba(255,0,0,0);\n}\n";
         $bookCss = $invisible . $bookCss;
     }
     return $bookCss;
 }