HTML with CSS

11 January, 2019 09:01:43
strutture energia
Topics: 6
Messages: 16
Hi,

I am trying to import into a pdf an HTML table with css.

I noticed that e2pdf erases all the CSS style, exept for the text color.

Is there a way to import also all the other CSS styles?

Thanks
11 January, 2019 09:07:13
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

Not all "HTML" tags are supported by E2Pdf engine. It's need closer look the html that your are trying to add to "e2pdf-html" object. ".css" style not supported and properties of table must be included directly with "style" tag like or supported tags like "bgcolor":

<table bgcolor="#00FF00">
<tbody><tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody></table>



We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 January, 2019 10:18:39
strutture energia
Topics: 6
Messages: 16
Hi,

thanks for your replay.

What we are trying to do is just put borders between columns and rows, and set the bold.

Can you suggest how we can do it please?

Thanks
11 January, 2019 10:26:44
strutture energia
Topics: 6
Messages: 16
Hi,

sorry, our IT specialist said that I didn't explained the issue correctly.

Give me some time so that the IT specialist can explain it directly here.

Thanks
11 January, 2019 12:44:58
E2Pdf
Support
Topics: 7
Messages: 3335
HTML support is still very limited. We have in plans to extend it. Currently "border" to html table is possible to add with code below:

<table border="1" style="text-align: center;width: 100%;" cellpadding="5">
<tbody>
<tr>
<td>1:1</td>
<td>1:2</td>
</tr>
<tr>
<td>2:1</td>
<td>2:2</td>
</tr>
</tbody>
</table>


We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 January, 2019 16:06:51
strutture energia
Topics: 6
Messages: 16
Good morning,

thanks: it works!

We were trying with the html5 standard.

Thanks