How to create a second page in the certificate pdf?

Re: How to create a second page in the certificate pdf?

by Raymond Fürst -
Number of replies: 0
try
$pdf->AddPage();
to add another page to your certificate. This Line is used in the file mod/certificate/type/YourType/certificate.php to generate the first page too.

It should inherit page settings from the previous page. You may have to copy the print_border(), draw_frame() and print_watermark() commands to make the second page look like the first page.

Basically each certificate.php has the following structure:

(PHP-inclusion commands)
(grade-formatting, date-formatting etc.)
// Create a new document
$pdf = new TCPDF_protection();
(pdf basic settings)
$pdf->AddPage();

// Add images and lines
print_border()
draw_frame()
print_watermark()
print_seal()
print_signature()

// Add Text
cert_printtext() für each text bit