sivasekar / dompdf

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

Paper Size Not Accurately Set #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1) Set DOMPDF to use the CPDF adapter.
2) Specify A4 as the paper size when rendering a document.

What is the expected output? What do you see instead?
Rather than create a document using a paper size of A4, DOMPDF runs until
memory is exhausted (on my test system). I am not certain exactly what
DOMPDF is attempting to create when it is passed an invalid page size.

The source of the problem is in the constructor function of the
CPDF_Adapter class (cpdf_adapter.cls.php). When checking for a match in the
array of paper sizes the code accurately forces lowercase, but does not
force lowercase when setting the paper size, resulting in the paper size
being set to a NULL value.

References
http://groups.google.com/group/dompdf/browse_thread/thread/d3cf6accb0ab7fb4

Original issue reported on code.google.com by eclecticgeek on 24 Jun 2009 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 Jun 2009 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 31 Jul 2009 at 3:40

GoogleCodeExporter commented 9 years ago
Issue 53 has been merged into this issue.

Original comment by eclecticgeek on 12 Aug 2009 at 6:08

GoogleCodeExporter commented 9 years ago

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