Hi Im trying to addfootnote on my docx.
I can add footnote but the problem is the existing footnote (pagenumber)on my docx is replacing the new one.
I want to retain footnote (pagenumber).
this is my code
$docx = new CreateDocxFromTemplate(FCPATH.$path.$file);
$footnote = new WordFragment($docx, 'document');
$footnote->addFootnote(array(
'textDocument' => 'sample text',
'textFootnote' => 'test',
'footnoteMark' => array('sz' => 16,'font'=> 'Bar-Code 39', 'textAlign' =>
'right')
)
);
$docx->addFooter(array('default' => $footnote));
$docx->createDocx(FCPATH.$path.$file);