DOMPDF helped. It supports Alpha channel images very well. It manages CSS floats well.
Compared to non-alpha channel images, it takes a lot of time to process transparent PNGs (Alpha Channel images).
Due to the size of my HTML and the number of images, my script took a couple of seconds longer than what was allowed by my host in terms of runtime.
By increasing runtime and DOMPDF, everything now works to perfection.
I hope this will be useful to someone else.
source share