Improve error_records pdf