pdftk myDocument.pdf cat 1-endE output output.pdf
The quick and easy solution
Open the PDF file with any viewer and print to file the selected page(s).
A feature-full solution with pdftk
pdftk can do MUCH MORE than this to PDF documents (join, rotate pages, ...). For more : man pdftk
A basic example
pdftk A=input.pdf cat A2 output output.pdf
A
serves as a handle on an input file
A2
means "page 2 of file with handle A"
A not-so-basic example
Let's imagine you received a scanned document of more than 100 pages having randomly-placed blank pages. You'd like to generate a PDF without those blank pages, which means you want to keep pages (pages listed below are included) :
- odd pages between page 1 and until page 51
- then all pages from 53 to 77
- then all pages from 79 to 101
- then the page 103
The command would then be :
pdftk A='documentWithBlankPages.pdf' cat 1-51odd 53-77 79-101 103 output cleanDocument.pdf
Don't forget the output keyword