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

Print always 7 signature lines in assingment pdf.
Added test.