Auto-rotate PDF pages

Find pages whose text runs sideways or upside down and turn them upright, page by page.