Rename saveAsPdf to saveAsPDF.