$font_size_8 = 8; $font_size_10 = 10; $font_size_12 = 12; $font_size_14 = 14; $row_spacing = 15; // ---------- COLUMN POSITIONS BEGIN ---------- $x1 = array('justification' => 'left', 'left' => 1, 'spacing' => 0); $x1b = array('justification' => 'full', 'left' => 1, 'spacing' => 1); $x1c = array('justification' => 'left', 'left' => 1, 'spacing' => 1.5); $x4 = array('justification' => 'left', 'left' => 645, 'spacing' => 0); $x5 = array('justification' => 'right', 'right' => 0, 'spacing' => 0); // ---------- COLUMN POSITIONS END ---------- // ---------- COLUMN HEADER VALUES BEGIN ---------- $pdf->selectFont('Helvetica-Bold'); $title = "Program Plan Narrative"; $title_width = $pdf->getTextWidth($font_size_14, "{$title}"); $title_position = 420.95 - $title_width * 0.5; // ---------- COLUMN HEADER VALUES END ---------- $prev_dept = "ZZZZ"; $curr_dept = " "; $curr_progid = "XXXXXXXX"; $prev_progid = " "; $total_flag = "no"; $new_page_flag = "no"; // ---------- PRINTS HEADER AND FOOTER BEGINS ---------- $pdf->selectFont('Helvetica-Bold'); $all = $pdf->openObject(); $pdf->saveState(); $pdf->addText($title_position, $ypos, $font_size_14, $title); $ypos = $ypos - $row_spacing; $pdf->selectFont('Helvetica');