The PDF file I saved using the savePdf function cannot be opened, but if I change the file extension from PDF to JPG or PNG, the file can be opened.