Instead of running as a separate utility, the same could be ran from a databricks notebook environment where PDF could be rendered right away and possibly attached to a registered model.
this includes generating token programmatically or authenticating differently
persist generated HTML outside of temp folder so that it can be rendered through displayHTML
make PDF downloadable by writing to /Files or by "base64" it
optionally attached this PDF alongside ML experiment
Instead of running as a separate utility, the same could be ran from a databricks notebook environment where PDF could be rendered right away and possibly attached to a registered model.
displayHTML
/Files
or by "base64" itPossibly using instead of reinventing the wheel