If an error stop converting to pdf.