#!/bin/bash
pdftk <input.pdf> cat pagestartno-pageendnoeast anotherpagestartno-anotherpageendnoeast output <output_r90.pdf>
# the step above you have to perform for each pdf
for file in *r90.pdf; do
pdftotext -layout $file
done