Hi All I am trying to find a way to center the custom text field on the landscape certificate.
So far here is what I have tried and the results (I post all this with the caveat that I am not a php coder):
Problem: The code as is will allow a br tag to break the text across two lines, but does not center the text.
Attempt 1:Added html centering tags to the field within Moodle itself
Result: No change--allows a br tag to break the text across two lines, but does not center the text.
Attempt 2: In the certificate.php file I removed
cert_printtext(150, 400, '', '', '', '', '');
from the very bottom of the page (Approx line 130).
Result: The text will now center, but now a br code does not allow the text to break across two lines
Attempt 3: Reverted to original code first, then added the bolded line (surrounding text added for just for context--approx line is 120) cert_printtext(150, 400, 'C', '', '', '', '');
Result: No change
Attempt 4: removed $pdf->SetLeftMargin(130);
Result: text printed way left aligned
Attempt 5: reverted back to original code, and then changed line to $pdf->WriteHTML('<div style="text-align: center;">' . $customtext . '</div>');
Result: no change
Any other ideas are greatly welcomed