PDF not generated correctly

See the posts following this one