Revert "PDF generation improvements"

This reverts commit 55339d5ec7c21cbd8c6a2abdf4034655094247d2.
Reverting accidental formatting changes