Add flattened HTML and PDF output