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);
}
Calling the ezpdf third-party plugin
Moderator: General Moderators