2

I am using evoPDF to convert HTML files and it seems that text-align:justify is not behaving properly. The spacing happens in between characters, instead of in between words.

What i have used so far without any success:

letter-spacing:0;
text-justify: inter-word;
Set !important to each of those.

Current Result:
Image

Expected Result:
Image


Thank you! :)

tiondal
  • 21
  • 3

1 Answers1

0

As text-justify not supported by many browsers and the way you are using the property it would be safer to use word-spacing as an alternative. According to the MDN docs inter-word is just a variation of the word-spacing property.

You could also try changing the HTTP User-Agent header for the conversion to an agent that may support the property. However, changing the header is is unlikely to affect the outcome.

EddyHaigh
  • 13
  • 1
  • 5