WIP: Skip searching when a document is empty
PDFgrep searches text in documents even when they are empty (state.document_empty == true
). When you search for an empty string in such a document, PDFgrep will "find" it returning 0 and total count > 0.
Why is this a problem? I am using PDFgrep to detect if a document contains text or not. I run pdfgrep --warn-empty -m 1 -c '' *.pdf
on a set of files.
Edited by Hrvoje Zlatar