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

[[page_nb]] adds extra padding on the right-hand side #792

Open
eremem opened this issue Mar 25, 2024 · 2 comments
Open

[[page_nb]] adds extra padding on the right-hand side #792

eremem opened this issue Mar 25, 2024 · 2 comments

Comments

@eremem
Copy link

eremem commented Mar 25, 2024

Please see the following code from res/example03.php:

    <page_footer>
        <table style="width: 100%; border: solid 1px black;">
            <tr>
                <td style="text-align: left;    width: 50%">html2pdf.fr</td>
                <td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
            </tr>
        </table>
    </page_footer>

and the result:

grafik

The problem doesn't seem to be specific to <table>. I could also reproduce it by simply adding [[page_nb]] directly into <page_footer>.

@RocketC31
Copy link

Hi, @eremem , i have the same problem, do you have solve it ?

@eremem
Copy link
Author

eremem commented Jul 29, 2024

Hi @RocketC31, I found no solution. It looks like a bug to me, since the HTML is straight forward. The other approach I tested was with 2 DIVs and width: 50% but it didn't work for me either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants