@brupp are you referring to a local html file or are you talking about taking a screenshot from a given url, but using DOpus?
For the latter, you can use the https://htmlcsstoimage.com API from DO itself. It seems promising, at least in some tests I did. (And is free for up to 50 images per month)