Start counting from actual beginning of PDF file
Merge pull request #4388 from timvandermeij/fix-corrupt-pdf-offset

Start counting from actual beginning of PDF file