-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Alignment footer PreserveText #45
Comments
@ottena Sorry for the late response. I've tested the following code to the latest develop branch: Test 1: $footer = $section->createFooter();
$footer->addPreserveText(
'Page {PAGE} of {NUMPAGES}',
array('color' => 'FF0000'),
array('align' => 'center')
); Test 2: $footer = $section->createFooter();
$footer->addPreserveText(
'Page {PAGE} of {NUMPAGES}',
null,
array('align' => 'center')
); Both displayed correct centered alignment. You must enter alignment as part of the paragraph style, which is the third argument of the function: $footer->addPreserveText($text, $styleFont = null, $styleParagraph = null) Can you please test and inform us about the result? Thanks. |
Hello Ivan, Thanks for your reply. By entering *null *as style, the alignment is correct. Thanks for checking it out. Best Regards, 2014-03-17 13:52 GMT+01:00 Ivan Lanin [email protected]:
|
Your welcome, Alex. Glad it helps. |
Hi Ivanlanin, How can we add addPreserveText method in section. I want to add indexing in my doc file with page number. Exp : Plz help Thanks |
Alignment of the PreserveText can only be done by entering an emty fontstyle array.
Leaving out the fontsyle array will result in left alignment of the text.
The text was updated successfully, but these errors were encountered: