I seem to be having trouble getting these headers to print correctly. Here is what I am using:
$title = '<span class="title" style="text-align:center; margin-left:1.5in;">Attendee List: '.$attendeeList->eventName.'</span><span class="date">Printed on '.date("F j, Y").'</span>';
$attendeeList->run()
			->cloudExport('EventAttendeeListsPDF')
			->chromeHeadlessio('***************************************')
			->pdf(["landscape"=>false,
					"displayHeaderFooter"=>true, 
					"headerTemplate"=>$title,
					"margin"=>(object)["top"=>'2cm', "bottom"=>'1cm'],
				])
			->toBrowser("attendees.pdf");
And the attached screen grab is what is being displayed. Furthermore, the header is not being repeated on multiple pages. Any ideas?

