Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paging to a footer with addHtml #1346

Closed
BohdanBursa opened this issue Apr 13, 2018 · 2 comments
Closed

Add paging to a footer with addHtml #1346

BohdanBursa opened this issue Apr 13, 2018 · 2 comments

Comments

@BohdanBursa
Copy link

Is there a way to add paging to a footer with

\PhpOffice\PhpWord\Shared\Html::addHtml($footer, $content,false, true);

I know how to do it like this
$footer->addPreserveText('Page {PAGE} of {NUMPAGES}.');

but i would like to do it with
\PhpOffice\PhpWord\Shared\Html::addHtml($footer, $content, false, true);

@troosan
Copy link
Contributor

troosan commented Apr 13, 2018

no, that's not possible. what you can do is add a TextRun to the footer, then add the HTML on that TextRun

@BohdanBursa
Copy link
Author

Thanks for your response , but that's not what i wanted to do, i will do it without the html then

@troosan troosan closed this as completed Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants