only ask for footer or header if the corresponding reference size is greater than zero