Register Lost your password?
Full api documentation: full api documentation FREE version full api documentation PRO version

public function addFootnote(array paramsText)

Parameters

$paramsText

  • ‘textEndNote’ (The endnote is a supplementary information which does not interrupt the normal reading flow of the document and it appears at the end of the page)
  • ‘textDocument’ (A reference mark within the text that indicates that additional information is available in a footnote or endnote. Each instance is properly numbered to allow the readers to find the information at the end of the page, the end of the document or at the end of the section.)
  • ‘font’ (A specific size and style of font type within a type family. Example ‘Times New Roman’, ‘Arial’,…)

Examples

Example 1 Version Pro


require_once 'classes/CreateDocx.inc';

$docx = new CreateDocx();

$docx->addFootnote(
    array(
        'textDocument' => 'Lorem ipsum dolor sit amet',
        'textEndNote' => 'footnote'
    )
);

$docx->createDocx('example_footnote');

    One Response

  • rommens

    is it possible to use footnotes without a paragraph-break in the text?

    like:
    (where (1) is the footnote)

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua(1). Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

    ———
    (1) footnote text

Your comments