The first one is - as you assume - the “original printout”.
The second one is my company’s CI lookalike…ps: the table with products is just dummy-data as it is not working
Wow, that was a really fast information. Yep, the output is not “ok”. One more question, how is the page-break defined in standard output? I can’t seen to find it in standard.html…
Edit:
I’d like to help you and share my code with others…but where is the printout of the PDF itself defined?
I want to add a header to the printout and I want to check if advanced WKHTMLTOPDF options are possible. This may help further development of ERPNext? Thanks already in advance @anand
But basically what I mean in detail is:
Where is the function itself that generates the PDF. Because since WKHTMLTOPDF offers a variety of options like header and footer for printout, I’d like to test it. But I can’t seem to find the corresponding file to change it.
thanks for that information.
You guess right: another question arises now…sorry for that
I am now running a multi-site-setup with 3x ERPNext. Problem…when I change e.g. the --background in pdf.py options, that changes my output in all 3 sites…is there a change to differentiate?
Since the code is common, it will affect all sites.
You should either put the modified code in another frappe app and call it via hook, or use multiple benches. But right now multiple benches will be tricky to setup.
I have to admit that the hooks are not my first choice…a multi-bench-setup would be f* great but right now since this is kind of tricky I won’t recommend that either.
I guess the better choice here is to choose more servers ?
What just came to my mind…how about doing it with like an if function. Is there a possibility for the pdf.py to determine which site is calling the python file?