Draw a dashed line on the grid page to specify the (right) margin

This commit is contained in:
Shamim Rezaie 2015-07-29 11:33:34 +10:00 committed by Mark Nelson
parent 6400e587d8
commit 444bc35d22

View file

@ -644,6 +644,11 @@ function customcert_generate_grid_pdf($pageid) {
$pdf->Line($wline, 0, $wline, $page->height);
}
// Draw the margin line.
if (!empty($page->margin)) {
$pdf->Line($page->width - $page->margin, 0, $page->width - $page->margin, $page->height, array('dash' => '2'));
}
$pdf->Output($pdfname . '.pdf', 'D');
exit();
}