Filtering pdfs