Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Vertically misaligned ordered list #394

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
require_once APPPATH . 'third_party/dompdf/dompdf_config.inc.php';
$dompdf = new DOMPDF();
$dompdf->load_html('<html><body><p>Three 
Planets</p><ol><li>Mercury</li><li>Venus</li><li>Earth</li></ol></body></html>')
;
$dompdf->set_paper('letter', 'portrait');
$dompdf->render();
$dompdf->stream("dompdf_out.pdf", array("Attachment" => false));

What is the expected output? What do you see instead?

The numbers of the ordered list should be aligned with the text but they aren't.

What version of the product are you using? On what operating system?

Windows 7, PHP 5.3.5, running the latest copy of DOMPDF from trunk 19/12/2011

Original issue reported on code.google.com by a_re...@live.co.uk on 19 Dec 2011 at 1:21

GoogleCodeExporter commented 8 years ago
I've noticed the same issue with the development version of dompdf, using A4 
paper size on an Ubuntu server, so I don't think it's an issue with your 
settings.

Original comment by p...@xk7.net on 19 Dec 2011 at 2:35

GoogleCodeExporter commented 8 years ago
The alignment on the latest code appears a little worse than in 0.6.0 beta 2. 
We'll try to address this prior to the next release.

Original comment by eclecticgeek on 20 Dec 2011 at 1:38

GoogleCodeExporter commented 8 years ago
Thanks eclecticgeek.

Original comment by a_re...@live.co.uk on 20 Dec 2011 at 10:31

GoogleCodeExporter commented 8 years ago
r451 should give better results, could you try it ?

Original comment by fabien.menager on 14 Jan 2012 at 3:06

GoogleCodeExporter commented 8 years ago
much improved alignment

Original comment by eclecticgeek on 15 Jan 2012 at 2:57

GoogleCodeExporter commented 8 years ago
Agreed, just updated the application I run and the text alignment is exactly 
what I'd expect now.

Thanks for the quick fix. :)

Original comment by p...@xk7.net on 16 Jan 2012 at 3:23

GoogleCodeExporter commented 8 years ago
Great! thanks for the feedback.

Original comment by fabien.menager on 16 Jan 2012 at 3:37

GoogleCodeExporter commented 8 years ago
Thank you for fixing this :)

Original comment by a_re...@live.co.uk on 25 Apr 2012 at 8:47

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16