the only difference is what we call “shadow dom” mechanism.
it is nothing but ISOLATION.
the set_df_property do nothing but inject html,
but frappe.create_shadow_element it creates separate isolated dom inside your dom hence it won’t break with any other style or js…etc
Can you help us with a small tutorial (seperate post) as I think you are the right front-end expert for this: -
We need simple page numbers on print format (if possible but not fussy - we can put it in other places than the header/footer)
I see v16 onwards is moving away from wkhtmltopdf to chrome headless for printing.
I also see in letter head there is a JS script portion for header/footer
Not sure how weasyprint fits into all this
I had to install another app Frappe Betterprint just to be able to get a page number - to me that does not make sense. Am sure there is a shortcut somewhere which I have missed.