Turn sideways or upside-down pages the right way up, one page at a time or all at once, then save the PDF.