wicked_pdf icon indicating copy to clipboard operation
wicked_pdf copied to clipboard

Bad render template with render_from_string.

Open agustingonzalez96 opened this issue 2 years ago • 1 comments

Hello im having a bad render when a try to equal old PDF, now i have a API system, my code its this image

and that render this pdf in this way Captura de pantalla de 2023-04-27 13-53-38

wel, now how should really do

Captura de pantalla de 2023-04-27 13-56-39

im in linux ubuntu 20.04 with the lastest version of wicked

agustingonzalez96 avatar Apr 27 '23 16:04 agustingonzalez96

Is the issue that you have extra white padding around the border? Try setting padding to zero as well as margin, both in the render_to_string call, and in your CSS. Your fonts also appear to be a little smaller. Is that because one is from a linux server, and one is local? Fonts that are only referenced by name may have differences from your computer and the server. If that is the issue, embed the font as a TTF or WOFF.

unixmonkey avatar Apr 27 '23 17:04 unixmonkey