X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2F3rdparty%2Flibraries%2Fmpdf%2Fmpdfi%2Fpdf_context.php;fp=inc%2F3rdparty%2Flibraries%2Fmpdf%2Fmpdfi%2Fpdf_context.php;h=0000000000000000000000000000000000000000;hb=824f8c45edb20e27221e92805b0090f1768a2756;hp=6cf4bdcc2b6e7c69d3c95903f4494755d9fd6240;hpb=d4690a8fa18c27c6d98c1c76ac1d1d2c35a1ebbb;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/3rdparty/libraries/mpdf/mpdfi/pdf_context.php b/inc/3rdparty/libraries/mpdf/mpdfi/pdf_context.php deleted file mode 100644 index 6cf4bdcc..00000000 --- a/inc/3rdparty/libraries/mpdf/mpdfi/pdf_context.php +++ /dev/null @@ -1,78 +0,0 @@ -file = $f; - $this->reset(); - } - - // Optionally move the file - // pointer to a new location - // and reset the buffered data - - function reset($pos = null, $l = 100) { - if (!is_null ($pos)) { - fseek ($this->file, $pos); - } - - $this->buffer = $l > 0 ? fread($this->file, $l) : ''; - $this->offset = 0; - $this->length = strlen($this->buffer); - $this->stack = array(); - } - - // Make sure that there is at least one - // character beyond the current offset in - // the buffer to prevent the tokenizer - // from attempting to access data that does - // not exist - - function ensure_content() { - if ($this->offset >= $this->length - 1) { - return $this->increase_length(); - } else { - return true; - } - } - - // Forcefully read more data into the buffer - - function increase_length($l=100) { - if (feof($this->file)) { - return false; - } else { - $this->buffer .= fread($this->file, $l); - $this->length = strlen($this->buffer); - return true; - } - } - -} -?> \ No newline at end of file