Skip to content Skip to sidebar Skip to footer

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-colorborder-bottom-color, border-bottom-style, border-bottom-widthborder-left-color, border-left-style, border-left-widthborder-right-color, border-right-style, border-right-widthborder-top-color, border-top-style, border-top-width
colordisplay
font-family, font-size, font-style, font-weightheightline-height, list-style-typemargin-bottom, margin-left, margin-right, margin-toppadding-bottom, padding-left, padding-right, padding-toppage-break-after, page-break-before
size
text-align, text-decoration, text-indentvertical-alignwhite-spacewidth
zoom

Here the documentation

Post a Comment for "Css Doesn't Work With Xhtml2pdf Django"