Rotating all pages in a PDF document (pdftk)

How to rotate all pages in a PDF document by 180 degrees (e.g. because someone has scanned in a document the wrong way round):

pdftk inputpdf cat 1-endsouth output outputpdf