How can I show the headers and texts and hide empty fields on the PDF submission?