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

footerTemplate pagination not visible #677

Open
codethislab opened this issue Jan 9, 2025 · 1 comment
Open

footerTemplate pagination not visible #677

codethislab opened this issue Jan 9, 2025 · 1 comment

Comments

@codethislab
Copy link

Hi,

In the last version ( ver 1.12 ) any text content in the footer is no more visible.

We use the "footerTemplate" option to write HTML code in the footer but it seems not working anymore.

This is our code:

$szFooter = "<div style="-webkit-print-color-adjust: exact; position:absolute; bottom: 14px; right:15px; text-align:right; font-size: 14px; 
color:#E70AA2;">Pagina <span style="-webkit-print-color-adjust: exact;" class="pageNumber"></span> di <span style="-webkit-print-
color-adjust: exact;" class="totalPages"></span></div>"

$page->pdf([
                    'headerTemplate'      => "<div></div>",
                    'footerTemplate'      => $szFooter,
                    'marginTop'           => 1,
                    'marginBottom'        => 1,
                    'marginLeft'          => 0.4,
                    'marginRight'         => 0.4,
                    'printBackground'     => true,  
                    'preferCSSPageSize'   => true, 
                ])->saveToFile($szBaseCachingFolder . "content_" . $szFileName);

It worked perfectly in the last 1.11 version.

Any clue?

Thanks.

@enricodias
Copy link
Member

Are you just the same code works in version 1.11 but not in 1.12? Using the same Chrome version? 1.12 doesn't seem to have any changes related to the print feature.

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