«Save as PDF»: in the print dialog choose the «Save as PDF» printer and click «Save». On iPhone — «Share» → «Save to Files».