Draw a dashed line on the grid page to specify the (right) margin
This commit is contained in:
parent
6400e587d8
commit
444bc35d22
1 changed files with 5 additions and 0 deletions
|
@ -644,6 +644,11 @@ function customcert_generate_grid_pdf($pageid) {
|
||||||
$pdf->Line($wline, 0, $wline, $page->height);
|
$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');
|
$pdf->Output($pdfname . '.pdf', 'D');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue