Calling the ezpdf third-party plugin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
naersky
Forum Newbie
Posts: 1
Joined: Thu Apr 07, 2011 10:44 pm

Calling the ezpdf third-party plugin

Post by naersky »

I have this code and I can't figured out why the app is not calling the ezpdf from the third-party plugin folder. Can anyone help me with this. Thanks

switch ($_REQUEST['submodule']) {

case "pdf":
if ($prescription->is_signed && !empty($prescription->record_id)) {
$pdf =& new Cezpdf('a5');
$pdf->selectFont($FONT_ROOT."Helvetica.afm");
$pdf->ezSetCmMargins(7, 2, 1, 1);
$pdf->ezText(date("F j, Y", strtotime($prescription->data_arr['date_issued'])), 12, array('justification'=>'right'));
$pdf->ezSetDy(-25);
$doc = new Doctor($prescription->data_arr['doc_id']);
$doc->init();
$doc->unserialize();
$pdf->ezText("Issued by: <b>{$doc->data_arr['full_name']}</b>", 12, array('justification'=>'left'));
$pdf->ezText("Prepared by: ".$prescription->lastModifiedUser(), 12, array('justification'=>'left'));
$pdf->ezSetDy(-25);

}
Post Reply