initial work for generating a pdf for a single ticket, refactor: remove unused stuff