user issue: style table #24

Elexy opened this Issue Mar 20, 2013 · 3 comments


None yet
2 participants

Elexy commented Mar 20, 2013

I am trying to padd table cells like this, but get: Unknown tag "td" in stylesheet section.
500 Internal Server Error - ParseException
Can anybody lend hand here? thanks in advance.

        <td padding="2px" />
        <complex-attribute name="background" color="Silver" />
        <td>Id : {{ }}</td>
        <td>Latitude: {{ }}</td>
        <td>Date: {{ "now"|date("m/d/Y") }}</td>
        <td>Longitude: {{ report.lon }}</td>


psliwa commented Mar 20, 2013

Please use separate stylesheet file ( instead inline styles. Inline tag works in different way. In your example styles apply on table tag, you can't define styles for children tag from inline styles.

Elexy commented Mar 20, 2013

Thanks, how do I include the external stylesheet when I use the Symfony2 bundle with twig?


psliwa commented Mar 20, 2013

Pdf annotation has stylesheet attribute, check this example: Example of stylesheet document syntax you can find in documentation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment