HTML with CSS

January 11, 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
January 11, 2019 09:07:13
E2Pdf
Topics: 7
Messages: 3617
Support
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!
January 11, 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
January 11, 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
January 11, 2019 12:44:58
E2Pdf
Topics: 7
Messages: 3617
Support
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!
January 15, 2019 16:06:51
strutture energia
Topics: 6
Messages: 16
Good morning,

thanks: it works!

We were trying with the html5 standard.

Thanks
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.