Count the number of lines in a PDF file in PHP
<p>In a PHP script, I would need to count the number of (text) lines in a PDF file. How can I do that? I cannot seem to find any answers on Google.</p>

<p>The PDF files I am interested in are templates for bindings of master theses (created and uploaded by users). I do not expect to find paragraphs of text in there, rather just single lines spread across a single page.</p>
