CSS Doesn't Work With Xhtml2pdf Django
I'm trying to improve my generated PDF created by xhtml2pdf with some CSS style in my Django Project. I would like for example to justify a text block, but apparently, it doesn't
Solution 1:
You do not have the CSS attribute "text-align: justify" in xhtml2pdf. Following attributes are integrated:
background-color
border-bottom-color, border-bottom-style, border-bottom-width
border-left-color, border-left-style, border-left-width
border-right-color, border-right-style, border-right-width
border-top-color, border-top-style, border-top-width
colordisplay
font-family, font-size, font-style, font-weight
height
line-height, list-style-type
margin-bottom, margin-left, margin-right, margin-top
padding-bottom, padding-left, padding-right, padding-top
page-break-after, page-break-before
size
text-align, text-decoration, text-indent
vertical-align
white-space
width
zoom
Here the documentation
Post a Comment for "CSS Doesn't Work With Xhtml2pdf Django"