add option to save diagnostics to multipage pdf