Modify execution of html to pdf converter