hakimhaji / dompdf

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

Incorrect sizing of tables with a mixture of #236

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using Version Beta:

When downsizing a table (containing both text and graphics), the final result 
exceeds the printing boundaries to the right. The table is, alike the remainder 
of the to-be-converted contents, left-aligned.

Layout:

The table consists of two types of cells:
a)  cells that contain only text
b)  cells that contain a single graphic

Detailed description:

When the table is converted, the text and the cells containing text are 
downsized correctly.
The downsizing of the graphics is done correctly, too.
However, the downsizing of those cells containing graphics is not done 
correctly.
In the original table, a graphic filled the entire cell.
After the conversion, a graphic fills the cell only in height but not in width 
(leaving white areas both to the left and right of the graphic).
Additionally, the table exceeds the printing boundary to the right.

Original issue reported on code.google.com by muellera...@tele2.de on 25 Feb 2011 at 9:12

GoogleCodeExporter commented 9 years ago
Hello, could you provide a sample HTML source code and the CSS if any?

Original comment by fabien.menager on 25 Feb 2011 at 11:34

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply.
I have attached a sample where you can see the faulty result of the conversion.
Included are the css-stylesheet, html-code, the output-pdf and a test image.

If you need anything else, please let me know and I will try to provide it.

Original comment by muellera...@tele2.de on 28 Feb 2011 at 10:47

Attachments:

GoogleCodeExporter commented 9 years ago
This definitely needs some improvement. If you need a work-around sooner you 
could either size the images smaller manually or modify the DOMPDF DPI.

Original comment by eclecticgeek on 1 Mar 2011 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00