I'm having trouble creating multiple PVF files.
It works with a single operKey, but not with multiple operKeys, the careQuery.php below goes to a database and pulls out a blob photo.
Can anyone give me a clue?
-
$p->begin_document ( "", "" ) ;
-
for ( $k = 0; $k <= 3; $k += 1) {
-
$p->begin_page_ext ( $pagewidth, $pageheight, "" );
-
$operKey = '10019152';
-
-
/* This is commented out 'cause it doesn't work
-
if ($k=0)
-
$operKey = '10019152';
-
if ($k=1)
-
$operKey = '10000431';
-
if ($k>1)
-
$operKey = '10017721';
-
*/
-
-
include './cardQuery.php';
-
-
//Create PDF Virtual File (PVF)
-
$pvf_filename = "/var/www/html/jops/" . $operKey . ".jpg";
-
$p->create_pvf($pvf_filename,$picture,"");
-
$image2 = $p->load_image("jpeg", $pvf_filename, "");
-
$p->fit_image($image2, 160,70,
-
"boxsize={65 70} position={left top} fitmethod=meet");
-
$p->delete_pvf($pvf_filename);
-
$p->end_page_ext ( "" );
-
-
}
-
$p->end_document ( "" );