Hide page numbers in PDF export + custom fonts

Hi all,

I’m evaluating ERPNext for a few days now. But for now I’m facing multiple problems regarding the PDF export (wkhtmltopdf) function.

  1. Hide page number
    I would like to hide the ‘Page x from x’ at the bottom of the footer. I successfully hided it by commenting the following code in the /home/frappe/frappe-bench/apps/frappe/frappe/templates/print_formats/standard.html file

{{ _("Page {0} of {1}").format('', '') }}

But by doing this, I’m not allowed to update ERPNext anymore. What’s the best way to hide this without losing it every time I update? I already tried it to hide it using custom CSS codes in the Print Style / Print Format, but without success…

  1. I would like to change the default Sans-Serif font to Arial in the PDF export. Also without success. If this is possible, I also would like to change the footer font to yet another one.

Thanks.

You may have to create a Custom Print Format to do such things.

For hiding the page number? And then use the standard.html file as reference?

And what about the fonts? Changing the font for the print preview is quite easy. But the PDF font is still the Sans-Serif type.