note 100287 deleted from function.imagick-getimagesblob by danbrown

From: Date: Wed, 06 Oct 2010 14:45:06 +0000
Subject: note 100287 deleted from function.imagick-getimagesblob by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173012@lists.php.net to get a copy of this message
Note Submitter: kp_riyas at yahoo dot com ---- i have some pdf's that are stored in a SQL server with data type Image. Now I want to merge them into a single document with Imagic from a PHP page. here is the code while( $document = mssql_fetch_assoc( $mssqlResult ){ $image = new Imagick(); $image->readImageBlob( $document['Contents'] ) ; $combined->addImage( $image ); $image->clear(); $image->destroy(); } $combined->setImageFormat("pdf"); header('Content-type: application/pdf'); echo $combined->getImagesBlob();

« previous php.notes (#173012) next »