Forum


Replies: 1   Views: 3144
[fixed] using marginfooter with modifypagelayout old bug
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by kobbe  · 23-06-2016 - 08:18

Hey this bug exist in older versions but also in the new 6.0! Must be fixed!!!!

CreateDocx.inc line 4666

BEFORE:

if (isset($layout[$paperType]['marginFooter'])) {
    $sectionNode->getElementsByTagName('pgMar')->item(0)->setAttribute('w:footer', $layout['marginFooter']);
}

 

AFTER FIX:

if (isset($layout['marginFooter'])) {
    $sectionNode->getElementsByTagName('pgMar')->item(0)->setAttribute('w:footer', $layout['marginFooter']);
}