replacing html with pdf for analysis summary