Implementing Custom Changes to frappe.utils.pdf Without Modifying Core Code

I’ve directly modified some methods in frappe.utils.pdf. How can I implement these changes in my custom app without altering the core code?

@sanjayraja check this Monkey patch customization - ignored path from hooks.py

1 Like

@sanjayraja Frappe_pdf is made this way (Monkey patching), if you need an example: GitHub - Ponnusamy1-V/frappe-pdf: Render PDF from server using google-chrome