Fixed #1326: Assignment PDF fails when having a lot of posts.

Print always 7 signature lines in assingment pdf.
Added test.
Merge pull request #1340 from emanuelschuetze/fix-1326

Fixed #1326: Assignment PDF fails when having a lot of posts.