Location: PHPKode > projects > Html2ps > html2ps-2.0.43/filter.output.gzip.class.php
<?php

class OutputFilterGZip extends OutputFilter {
  function content_type() {
    return null;
    //    return ContentType::gz();
  }

  function process($tmp_filename) {
    $output_file = $tmp_filename.'.gz';

    $file = gzopen($output_file, "wb");
    gzwrite($file, file_get_contents($tmp_filename));
    gzclose($file);

    unlink($tmp_filename);
    return $output_file;
  }
}
?>
Return current item: Html2ps