Milano
Milano

Reputation: 18735

Wkhtmltopdf renders different on two Ubuntu's

I use wkhtmltopdf (in fact django-wkhtmltopdf) to generate PDF.

I have to use xvfb because we need to run it on production server Ubuntu 16.04 too.

The problem is that for example tables have different sizes on production and on development server and the text color is different too.

On both servers it runs this way:

settings.py

WKHTMLTOPDF_CMD=xvfb-run --server-args="-screen 0, 1024x768x24" /usr/local/bin/wkhtmltopdf --zoom 1.04

development Ubuntu 18.04

enter image description here

production Ubuntu 16.04

enter image description here

Do you know what is wrong or how to debug this?

Upvotes: 1

Views: 662

Answers (0)

Related Questions