Fix render html to pdf and use lower dpi in test to fasten the test.