IIRC you have to use the “Export as” option instead of the “Save as” for a .pdf file.