ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

V11 pdf file don't apply css and image


This is the fix!


ok credit where credit is due, I just read gmplab’s post #1 -

In his report on this issue, gmplab already advised of this fix some time ago!


By following the instructions in that post, I was able to resolve this issue…

I installed wkhtmltopdf 0.12.5 using the below:

sudo apt-get install -y software-properties-common &&
sudo apt-add-repository -y “deb xenial-security main” &&
sudo apt-get -yq update &&
sudo apt-get install -y libxrender1 libfontconfig1 libx11-dev libjpeg62 libxtst6
fontconfig xfonts-75dpi xfonts-base libpng12-0 &&
wget “” &&
sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb &&
sudo apt-get -f install

Hope it helps everyone else…


Does this have modern css ssupport or it will just help in fixing the standard print format issue?


Some say it fixes all issues, presumably including modern css support. Personally, to this day I still have issues with svg’s when exporting to pdf/batch printing (which is basically batch export to pdf). I never could get a standard bootstrap grid to take, either. Fonts and relative/absolute positioning work, though?

Interesting enough, svg’s work fine when printing single items, so there seems to be some difference between just printing and printing via pdf.