Forum


Replies: 3   Views: 3705
Footer addpagenumber
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 nikkyb8  · 13-04-2014 - 16:45

Hello,



I make myfooterlike this:

htmlFooter$= "";



$ q= $db-> query("SELECTFROMcontenu_modelliste_modelWHERE id=" $pied_page_id.)

$resultattest=$ q-> fetch();

if ($resultattest!= false&&$resultattest[0]!= "")

{

$htmlFooter=nl2br(base64_decode($resultattest[0]));

$$=text_entete_pied_ou_contenuhtmlFooter;



include '../creerdocument/moi_meme2.php';



$$=htmlFootertext_entete_pied_ou_contenu;



htmlFooterhtmlspecialchars_decode=$($htmlFooter);

$footer= $docx->embedHTML($htmlFooter,array ('rawWordML' => true,'target' => 'defaultFooter'));

$myFooter= $docx->createWordMLFragment(array ($footer));

$docx->addFooter(array ('default'=> $myFooter));



}

I would like toadd numbering

How canI integratethis:

$pager= $docx2->addPageNumber('numerical', array('jc' =>'center', 'rawWordML' =>true));



Can you tell mehowto proceed?



Thank youin advance


Posted by nikkyb8  · 16-04-2014 - 08:55

I,



Do you have an idea ?


Posted by nikkyb8  · 06-06-2014 - 13:09

Hello, Still no idea ?

Posted by jorge  · 09-06-2014 - 07:32

Hello, If you just need to add the new pager, please do the following: $pager = $docx->addPageNumber('numerical', array('jc' =>'center', 'rawWordML' => true)); $myFooter = $docx->createWordMLFragment(array($pager)); $docx->addFooter(array('default' => $myFooter)); This is, after create the pagenumber get the WordMLFragment and and it to the footer. If you want a further integration we recommend you to upgrade to phpdocx 4.0. Regards.