Revert "allow a pdf output of 100000 elements"

This reverts commit 388a623a757373b91b4f88ac82e8af501c0220fe.