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

Static Frame for the footer doesn't work properly #613

Closed
barrabaja opened this issue May 13, 2022 · 3 comments
Closed

Static Frame for the footer doesn't work properly #613

barrabaja opened this issue May 13, 2022 · 3 comments
Labels
needs reproduction info Needs more info on how to reproduce this bug question Further information is requested

Comments

@barrabaja
Copy link

Since version 0.2.7 the static frame for the footer has stopped working correctly, e.g. in the documentation examples.

@timobrembeck
Copy link
Collaborator

Is this a duplicate of #653, #644 and #564?
@barrabaja can you check whether this problem is fixed in the latest release?

@timobrembeck timobrembeck added needs reproduction info Needs more info on how to reproduce this bug question Further information is requested labels Feb 2, 2023
@vishalpathak24
Copy link

vishalpathak24 commented Feb 5, 2023

Its not working for me

version: xhtml2pdf == 0.2.9

@page {
        size: a4 portrait;
        @frame header_frame {           /* Static frame */
            -pdf-frame-content: header_content;
            left: 50pt; width: 512pt; top: 0pt; height: 40pt;
        }
        @frame content_frame {             /* Content frame */
            left: 50pt; width: 512pt; top: 40pt; height: 632pt;
        }
        @frame footer_frame {           /* Static frame */
            -pdf-frame-content: footer_content;
            -pdf-frame-border: 1;
            left: 50pt; width: 512pt; top: 772pt; height: 20pt;
        }
    }
<body>
<div id="header_frame">
        I am header
</div>
<div id="footer_frame">
    I am footer
</div>
</body>

Generates text "I am footer" on top but footer box in bottom.

I will try to share complete sample code once, close my work.

@barrabaja
Copy link
Author

Is this a duplicate of #653, #644 and #564?
@barrabaja can you check whether this problem is fixed in the latest release?

Sure! I can confirm that the problem of version 0.2.7 with the footer is solved

version: xhtml2pdf == 0.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction info Needs more info on how to reproduce this bug question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants