Forum


Replies: 3   Views: 3844
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