I want to share how I could define margin for PDF Files. This workaround works for Cloud and On-Premises instances.
First, you may can take a look to the pdf.py file in GitHub (Frappe Repo).
This method looks for a CSS class .print-format and its attribute but ONLY in mm. However, ERPNext could cache the .css file making impossible to see changes immediately after we save. To solve this, we have to add a <style></style> tag in the Custom Report (or Predefined) changing this attributes. i.e.
Thank you. Did you find a table or chart indicating each of the elements so others can be adjusted? For example want to make terms font size smaller and was working before, but now neither:
Hello @aliriocastro , I want to make the header (thead) and footer (tfoot) repeat, which works well when printing. However, in the PDF, the header and footer don’t repeat as they should.