HTML with CSS

2019-01-11 01:01:43
strutture energia
Topics: 5
Messages: 15
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
2019-01-11 01:07:13
Oleksandr
Support
Topics: 2
Messages: 364
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.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
2019-01-11 02:18:39
strutture energia
Topics: 5
Messages: 15
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
2019-01-11 02:26:44
strutture energia
Topics: 5
Messages: 15
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
2019-01-11 04:44:58
Oleksandr
Support
Topics: 2
Messages: 364
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.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
2019-01-15 08:06:51
strutture energia
Topics: 5
Messages: 15
Good morning,

thanks: it works!

We were trying with the html5 standard.

Thanks