Share » Forums » Developer » Output non-html (pdf) code from ez...

Output non-html (pdf) code from ez extension

Output non-html (pdf) code from ez extension

Monday 03 May 2004 7:07:42 am - 1 reply

Author Message

STEVO +

Thursday 06 May 2004 5:24:19 am

something like this:

    ob_clean();

    header( 'X-Powered-By: eZ publish' );
    header( 'Content-Length: '. filesize( $cacheFile ) );
    header( 'Content-Type: application/pdf' );
    header( 'Content-Transfer-Encoding: binary' );
    header( 'Accept-Ranges: bytes' );

    ob_end_clean();

    $fp = @fopen( $cacheFile, 'r' );
    @fpassthru( $fp );

    include_once( 'lib/ezutils/classes/ezexecution.php' );
    eZExecution::cleanExit();

from http://pubsvn.ez.no/nextgen/trunk/kernel/content/pdf.php

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu