phpWord设置页码奇偶页不同Footer::EVEN

$footer = $section->addFooter();
        $footer->addPreserveText('—{PAGE}—',array('name'=>'宋体','size'=>12),array('align'=>'right'));
//偶数页码码,先设置,后应用
        $phpWord->getSettings()->setEvenAndOddHeaders(true);
        $eventFooter = $section->addFooter(Footer::EVEN);
        $eventFooter->addPreserveText('—{PAGE}—',array('name'=>'宋体','size'=>12),array('align'=>'left'));

你可能感兴趣的:(Thinkphp,phpWord,html)