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

Footer content is not displayed #564

Closed
jorguerra opened this issue Aug 13, 2021 · 7 comments
Closed

Footer content is not displayed #564

jorguerra opened this issue Aug 13, 2021 · 7 comments
Labels
bug Something isn't working regression Something that was working before tags Problems with custom <pdf> tags
Milestone

Comments

@jorguerra
Copy link

I have a footer frame which cannot be seen. This is how I have configured the @frame properties.

...
<style type="text/css">
      @page {
        size: A4 portrait; /* can use also 'landscape' for orientation */

        @frame content_frame {          /* Content Frame */
            left: 60pt;
            width: 470pt;
            top: 10pt;
            height: 750pt;
        }
        /* Another static Frame */
        @frame footer_frame {           
            -pdf-frame-content: footer_content;
            left: 60pt; width: 470pt; top: 770pt; height: 40pt;
            display: block;
            color: black;
            -pdf-frame-border: 1; 
        }
      }
</style>
</head>
<body>
<div id="footer_content" style="color:black">My footer </div>
<!-- Rest of the content is being displayed correctly -->

In the PDF I can see the pdf frame with the border but empty without any content even though the footer id is the first in being defined after open the body tag.

@luisza luisza added this to the Release 0.2.7 milestone Mar 12, 2022
@luisza luisza added the 0.2.7 label Mar 12, 2022
@jorenham
Copy link
Contributor

Is this fixed in 0.2.8?

@tobiasgardner
Copy link

tobiasgardner commented Jul 14, 2022

This works in version 0.2.6 for me, but not any version beyond that.
Same thing with header. As soon as

@frame header_frame {
  **-pdf-frame-content:** header_content;

or

@frame footer_frame {
  **-pdf-frame-content:** footer_content;

is used, those parts of the generated page becomes blank...

@tyler555g
Copy link
Contributor

I am having the same issue, but versions 0.2.6 - 0.2.8 do not work.

@folkvir
Copy link

folkvir commented Jul 26, 2022

Same problem, The readthedoc example is only working with 0.2.6 but not higher versions.
Reportlab version: reportlab==3.6.11
pillow version: Pillow==9.2.0

@timobrembeck
Copy link
Collaborator

What's the status of this issue? Was is closed by merging #628?

@timobrembeck timobrembeck added tags Problems with custom <pdf> tags bug Something isn't working regression Something that was working before and removed 0.2.7 labels Feb 1, 2023
@folkvir
Copy link

folkvir commented Feb 2, 2023

@timoludwig
It seems that the 0.2.9 meets all our requirements and also fixes this issue.
I confirm that our pdf generated with this new release generates again our footers.

@timobrembeck
Copy link
Collaborator

@folkvir Awesome, thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something that was working before tags Problems with custom <pdf> tags
Projects
None yet
Development

No branches or pull requests

7 participants