Usually removing specific pages from a document may go with word counts. Counting words in a pdf document under Unix/Linux can be done as follows:
Count words -- including pages numbers, header text, etc,
pdftotext yourfile.pdf - | wc -w
Or
count only words starting with a char out of [A-Za-z], or out of [A-Za-z,0-9], respectively:
pdftotext yourfile.pdf - | tr " " "\n" | sort | uniq | grep "^[A-Za-z]" > words
pdftotext yourfile.pdf - | tr " " "\n" | sort | uniq | grep "^[A-Za-z,0-9]" > words
and after getting the words list, "words", grep it within the output of pdftotext:
pdftotext yourfile.pdf - | tr " " "\n" | grep -Ff words | wc -l
See a
reference.
See also an online tool
here for counting words in the LaTeX documents.