html to jpeg dynamic conversion for text printing