Modify html to pdf converter for more proper use of existing func.