fixes for 50 DPI resolution of PDF for resulting HTML