prepared for old HTMLToPDf