Table problems & questions

80 views
Skip to first unread message

Gorka Leguina

unread,
Dec 4, 2009, 9:20:09 AM12/4/09
to dompdf
Hi,

Creating tables got that problem: text doesn't respect css defnitions
and step over the defined boxes and some words overlap.

This are some of my css style objects:

.container{
margin:0 auto;
width:800px;
font-size:14px;
padding-top:20px;
padding-bottom:20px;
}

.data_box{
border: 3px solid #95b3d7;
}

.border_table{
width:794px;
border:1px solid #000000;
}

.border_table td{padding:2px;}

.border_box{border: 1px solid #ccc;}

And this is part of my html code:

<body>
<div class="container">
<div class="data_box">
<div>
<table class="border_table">
<tr>
<td class="border_box">[...] A LOT OF TEXT [...]</td>
</tr>
</table>
</div>
</div>
</div>
</body>

Also got a few questions:

- Did floating elements work in dompdf??
- What about checkboxes??
- And what about negative padding??

Thank you so much for your time.

Gorka Leguina.

BrianS

unread,
Dec 4, 2009, 12:14:14 PM12/4/09
to dompdf
Are you using DOMPDF 0.5.1 or 0.6.0 alpha 2? The former has problems
when you start using characters outside the standard ANSI character
set. The results are often seen in overlapping characters or lines of
text extending beyond the defined boundary.

> Also got a few questions:
>
> - Did floating elements work in dompdf??

Float is not yet supported in DOMPDF, though it is on our list of
requested changes. I doubt it will show up in the next stable release,
but perhaps in the following one.

> - What about checkboxes??

Form elements in general are not currently supported.

> - And what about negative padding??

Negative margin/padding should be supported. If a you have a document
with this type of styling that does not appear as expected let us
know.

-b

Gorka Leguina

unread,
Dec 4, 2009, 12:36:02 PM12/4/09
to dompdf

> Are you using DOMPDF 0.5.1 or 0.6.0 alpha 2? The former has problems
> when you start using characters outside the standard ANSI character
> set. The results are often seen in overlapping characters or lines of
> text extending beyond the defined boundary.

I'm using 0.6.0 alpha 2. I tried deleting special characters and it
works correctly... but i can't work without them. Is there any
solution?? Is it difficult to change dompdf code to solve this
problem??

> > - Did floating elements work in dompdf??
> > - What about checkboxes??

Sorry about that, i saw it later on the wiki... :$

> Negative margin/padding should be supported. If a you have a document
> with this type of styling that does not appear as expected let us
> know.

I asked it cause it doesn't work... but it's not a big problem,
changing my css I achieved my goal :D

ThnX!!!

BrianS

unread,
Dec 4, 2009, 5:07:46 PM12/4/09
to dompdf
On Dec 4, 12:36 pm, Gorka Leguina <gorkalegu...@gmail.com> wrote:
> > Are you using DOMPDF 0.5.1 or 0.6.0 alpha 2? The former has problems
> > when you start using characters outside the standard ANSI character
> > set. The results are often seen in overlapping characters or lines of
> > text extending beyond the defined boundary.
>
> I'm using 0.6.0 alpha 2. I tried deleting special characters and it
> works correctly... but i can't work without them. Is there any
> solution?? Is it difficult to change dompdf code to solve this
> problem??

The character set available when you're not using Unicode is still
fairly limited. We need to document exactly what characters are
supported, which I hope to include as part of the documentation
updates with the next release.

To work around the problem try supplying a font of your own (installed
for DOMPDF using the load_font.php script) and enabling Unicode. I
believe so long as your font supports the characters you need it
should work ok.
Reply all
Reply to author
Forward
0 new messages