• Resolved gluecklichezwerge

    (@gluecklichezwerge)


    Hello,

    I just realized that the generated PDF cuts my footer in half. Although I would expect a second page to be generated and attached, this is not the case.
    Now I have this questions:
    – If only a few items are purchased and there is white, unused space before footer, is it possible to reduce the available space to make sure footer will be fully visible?

    Here is an example PDF:
    https://www.dropbox.com/s/nevv5jjahhvc44k/Rechnung-GZ-5.pdf?dl=0

    Thanks in advance, best regards,

    -Bj?rn

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Bj?rn,
    The footer has a fixed size (2cm), and the reason it doesn’t create a second page is because the footer is an actual footer that is excluded from the page flow. You can however increase the height of the footer to match the lenght of your content with CSS.

    
    #footer {
    	bottom: -4cm;
    	height: 4cm;
    }
    @page {
    	margin-bottom: 5cm; /* footer size + 1cm) */
    }
    

    Alternatively, if you prefer the footer to flow with the page you can remove it from the footer settings altogether and add the text below the order items table with an action hook: Print a custom text after the order details table

    Hope that helps!
    Ewout

    Thread Starter gluecklichezwerge

    (@gluecklichezwerge)

    Hello Ewout,

    are you talking about my site footer or the footer from the invoice PDF? Maybe I wasn’t able to make that clear. :/
    I was referring to the invoice footer. For now I re-ordered my invoice footer text and everything is fully readable.

    Thank you, have a great day!

    -Bj?rn

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Bj?rn,
    Yes this was definitely about the invoice footer (site footer doesn’t have @page properties and no height defined in cm :)).
    So if you need to use a larger area for the footer again you can follow the above instructions (I’ve included some links to relevant documentation as well).

    Glad to hear the issue is resolved for now though!

    Happy selling!
    Ewout

    Thread Starter gluecklichezwerge

    (@gluecklichezwerge)

    Hi Ewout,

    thanks for your reply. And now that you mention it, I was indeed wondering about the cm scale unit, but thought, hey, quite interesting to know you can use that as well. ??
    I will check it out, thank you so much for taking your time.

    Have a great day,

    -Bj?rn

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Length / Footer Cut in Half’ is closed to new replies.