TB pdf form generation