Why are GetTextFromPage from iTextSharp returning longer and longer strings?
<p>I am using the latest <code>iTextSharp</code> lib from nuGet (5.5.8) to parse some text from a pdf-file. The problem I am facing is that <code>GetTextFromPage</code> method does not only return the text from the page that it should, it also returns the text from the previous page. Here is my code:</p>

<pre><code>var url = "https://www.oslo.kommune.no/getfile.php/Innhold/Politikk%20og%20administrasjon/Etater%20og%20foretak/Utdanningsetaten/Postjournal%20Utdanningsetaten/UDE03032016.pdf";
var strategy = new SimpleTextExtractionStrategy();
using (var reader = new PdfReader(new Uri(url)))
{
    for (var page = 1; page &lt;= reader.NumberOfPages; page++)
    {
        var textFromPage = PdfTextExtractor.GetTextFromPage(reader, page, strategy);
        Console.WriteLine(textFromPage.Length);
    }
}
</code></pre>

<p>The output looks like this, which is not what i need. I need the text that is actually on the page:</p>

<pre><code>1106
2248
3468
4835
5167
6431
7563
8860
9962
11216
12399
13640
14690
15760
</code></pre>

<p>Any ideas?</p>