PMCORE-3657 OutputDocuments compatibility does not work
This commit is contained in:
@@ -1387,21 +1387,21 @@ class OutputDocument extends BaseOutputDocument
|
|||||||
|
|
||||||
$struct = $pdf->getHeaderStruct();
|
$struct = $pdf->getHeaderStruct();
|
||||||
|
|
||||||
$struct->setLogo($header->logo);
|
$struct->setLogo($header->logo ?? '');
|
||||||
$struct->setLogoWidth($header->logoWidth);
|
$struct->setLogoWidth($header->logoWidth ?? 0);
|
||||||
$struct->setLogoPositionX($header->logoPositionX);
|
$struct->setLogoPositionX($header->logoPositionX ?? 0);
|
||||||
$struct->setLogoPositionY($header->logoPositionY);
|
$struct->setLogoPositionY($header->logoPositionY ?? 0);
|
||||||
|
|
||||||
$struct->setTitle($header->title);
|
$struct->setTitle($header->title ?? '');
|
||||||
$struct->setTitleFontSize($header->titleFontSize);
|
$struct->setTitleFontSize($header->titleFontSize ?? 0);
|
||||||
$struct->setTitleFontPositionX($header->titleFontPositionX);
|
$struct->setTitleFontPositionX($header->titleFontPositionX ?? 0);
|
||||||
$struct->setTitleFontPositionY($header->titleFontPositionY);
|
$struct->setTitleFontPositionY($header->titleFontPositionY ?? 0);
|
||||||
|
|
||||||
$struct->setPageNumber($header->pageNumber);
|
$struct->setPageNumber($header->pageNumber ?? false);
|
||||||
$struct->setPageNumberTitle($header->pageNumberTitle);
|
$struct->setPageNumberTitle($header->pageNumberTitle ?? '');
|
||||||
$struct->setPageNumberTotal($header->pageNumberTotal);
|
$struct->setPageNumberTotal($header->pageNumberTotal ?? false);
|
||||||
$struct->setPageNumberPositionX($header->pageNumberPositionX);
|
$struct->setPageNumberPositionX($header->pageNumberPositionX ?? 0);
|
||||||
$struct->setPageNumberPositionY($header->pageNumberPositionY);
|
$struct->setPageNumberPositionY($header->pageNumberPositionY ?? 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1419,21 +1419,21 @@ class OutputDocument extends BaseOutputDocument
|
|||||||
|
|
||||||
$struct = $pdf->getFooterStruct();
|
$struct = $pdf->getFooterStruct();
|
||||||
|
|
||||||
$struct->setLogo($footer->logo);
|
$struct->setLogo($footer->logo ?? '');
|
||||||
$struct->setLogoWidth($footer->logoWidth);
|
$struct->setLogoWidth($footer->logoWidth ?? 0);
|
||||||
$struct->setLogoPositionX($footer->logoPositionX);
|
$struct->setLogoPositionX($footer->logoPositionX ?? 0);
|
||||||
$struct->setLogoPositionY($footer->logoPositionY);
|
$struct->setLogoPositionY($footer->logoPositionY ?? 0);
|
||||||
|
|
||||||
$struct->setTitle($footer->title);
|
$struct->setTitle($footer->title ?? '');
|
||||||
$struct->setTitleFontSize($footer->titleFontSize);
|
$struct->setTitleFontSize($footer->titleFontSize ?? 0);
|
||||||
$struct->setTitleFontPositionX($footer->titleFontPositionX);
|
$struct->setTitleFontPositionX($footer->titleFontPositionX ?? 0);
|
||||||
$struct->setTitleFontPositionY($footer->titleFontPositionY);
|
$struct->setTitleFontPositionY($footer->titleFontPositionY ?? 0);
|
||||||
|
|
||||||
$struct->setPageNumber($footer->pageNumber);
|
$struct->setPageNumber($footer->pageNumber ?? false);
|
||||||
$struct->setPageNumberTitle($footer->pageNumberTitle);
|
$struct->setPageNumberTitle($footer->pageNumberTitle ?? '');
|
||||||
$struct->setPageNumberTotal($footer->pageNumberTotal);
|
$struct->setPageNumberTotal($footer->pageNumberTotal ?? false);
|
||||||
$struct->setPageNumberPositionX($footer->pageNumberPositionX);
|
$struct->setPageNumberPositionX($footer->pageNumberPositionX ?? 0);
|
||||||
$struct->setPageNumberPositionY($footer->pageNumberPositionY);
|
$struct->setPageNumberPositionY($footer->pageNumberPositionY ?? 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user