diff --git a/src/GenerateDocument.php b/src/GenerateDocument.php index cab1462..5236b4c 100644 --- a/src/GenerateDocument.php +++ b/src/GenerateDocument.php @@ -213,6 +213,14 @@ private function buildData() $data['waitForElement'] = $this->waitForElement; } + if (isset($this->header)) { + $data['headerTemplate'] = $this->header; + } + + if (isset($this->footer)) { + $data['footerTemplate'] = $this->footer; + } + return $data; }