convert png to pdf then to html

You can use Imagick to convert png to pdf.
PDF to HTML, you could use a library for that.
 
You won't be able to do this or rather it won't be an easy task, especially not to do it perfectly.

If I understand you correctly, then you want to:
PNG -> PDF -> HTML

This is pretty much the same task as:
PNG -> HTML

This means that your source or input would be an image and with an image you won't have any elements or source code for the properties inside the image.
You would need some pretty powerful software that would be able to get the shapes and objects from the image and translate them to HTML and CSS and even with the best software today, you'll end up with a pretty shitty result.

To summarize: even if you find a solution for this I'm positive that you won't end up with a satisfying result.
 
Are the PNG's transparent?
Or would they all have white bg or black bg?
 
Back
Top