Skip to content

How to set bold to fields inside preservetext()? #2771

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

Open
vhood opened this issue Mar 31, 2025 · 0 comments
Open

How to set bold to fields inside preservetext()? #2771

vhood opened this issue Mar 31, 2025 · 0 comments

Comments

@vhood
Copy link

vhood commented Mar 31, 2025

Hi.

In this case

$footer = $section->addFooter();
$footer->addPreserveText('Page {PAGE} of {NUMPAGES}', static::FONT_DEFAULT, static::LINE_RIGHT);

the result will be:
Page 1 of 1

How to make the numbers bold?
Page 1 of 1

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

1 participant