Unfortutnately at this time, the DocGen Lightning component isn't customizable, so you won't be able to remove the "Contacts" section. We are planning on adding some features to make it more customizable in the future.
I had another doubt regarding Template and output file,
the doubt is how to suppress the blank spaces in output document.
we had the values for product1 and product3, In the output document it is showing Product2 as blank space,the requirment is to suppress it and show as
but I am getting like