Rafactor util functions out of main code.
Drawing boxes for each batch in PDF.
Add new pages when needed.
Respect include overdue/completed checkboxes.
Use different colours for overdue and completed headings.
Don't show empty sections in PDF.