When creating a PDF in PHP (with TCPDF), I have a line of text aligned to the right. When I increase the left margin, this line extends beyond the page border, though the right margin is specified at 10mm. The remaining of the text (left aligned) respects the right margin.
Small left margin works:
$pdf->SetMargins(10, 10, 10, true);
$html = "<p>City name, August 30, 2018</p>";
$pdf->writeHTML($html, true, false, true, false, 'R');
Increased left margin doesn't work:
$pdf->SetMargins(25, 10, 10, true);
$html = "<p>City name, August 30, 2018</p>";
$pdf->writeHTML($html, true, false, true, false, 'R');
The 8 from 2018 disappears to the right of the page. Is this a bug, or am I missing something?