First, enter the print dialog by pressing Ctrl+P (or Command+P on Mac)
Then, change the print destination from your printer to Save as PDF.
Finally, click Save.