Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

How To Change QWEB Footer Height ( Bottom-Margin ) In Specific Page ( Last Page )

Odebírat

Get notified when there's activity on this post

This question has been flagged
qwebwkhtmltopdfpaperformat
1 Odpovědět
1393 Zobrazení
Avatar
Phu

Hello Everyone,


​ ​Page 1 ​ ​ ​ ​ ​ ​ ​ ​ ​ ​​​Page 2


##################              ##################

#                                    #             #                            ​    ​   #

#        HEADER              #             #         HEADER             # 

#                                    #             #                            ​         #

################## ​ ​ ​ ​##################

#                                    #             #            ​ ​   ​ ​   ​#

#        ARTICLE             #             #        ARTICLE              #       

#                                    #             #                            ​  ​   #

#                                    #             #                              ​      #

#                                    #             #                              ​      #

#                                    #             #                            ​        #

#                                    #             #                              ​      # 

################## ​ ​ ​​##################

#        {blank_space}    # ​ ​ ​​#         Sign Here          #

#    ​ ​ ​ ​   # Footer ​#    ​ ​ ​ ​  # ​ #​ ​ ​ ​ ​  ​#

#       Page number       # ​ ​ ​ ​#       Page number      #

################## ​ ​ ​ ​##################


Here's my Footer

i apply this report_qweb_element_page_visibility oca module 

so my sign section only appear on last page


My problem is the blank space on the first page is there anyway to have dynamic footer height or ( move my signing section to article and make it appear before footer even though my article on the 2nd page only have 1 line of content )
odoo 18


I'm really confuse with wkhtmltopdf 

Please Help, Thank !


​           <div class="footer">

                        <div class="last-page" name="Signing Section">

                            <p>____ Person 1____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 2____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 3____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 4____</p>

                            <p>____ Sign Here ____</p>

                        </div>


                        <div name="display-page-number">

                            Page <span class="page"/> of <span class="topage"/>

                        </div>

                    </div>



0
Avatar
Zrušit
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

Hi,


It’s really a wkhtmltopdf limitation in Odoo QWeb reports rather than just a CSS issue.


- In Odoo reports, the footer section is fixed-height across all pages (wkhtmltopdf requirement).

- When you use the OCA report_qweb_element_page_visibility module to only show the sign block on the last page, that empty “reserved space” in the footer still exists on all pages, even when hidden,  because wkhtmltopdf allocates it at rendering time.

-That’s why you see the big blank space on page 1, even though the sign area is invisible.


wkhtmltopdf treats the header/footer as static templates, separate from the main content flow.

So the footer height is determined by the tallest footer across all pages. If your last page footer is large (signatures), that height is applied to every page.


Possible solution.


1- Move the signature block into the main body


    Instead of putting the signature in the <div class="footer">, you:

          - Place it in the article/content area.

          - Use report_qweb_element_page_visibility to display it only on the last page.

          - This way, the footer stays small, and the signature’s height does not affect earlier pages.

          - Eg :- <div class="article">

    <!-- your main content -->


    <div class="last-page" name="sign-section">

        <p>____ Person 1 ____</p>

        <p>____ Sign Here ____</p>

        ...

    </div>

</div>


<div class="footer">

    <div name="display-page-number">

        Page <span class="page"/> of <span class="topage"/>

    </div>

</div>


2- Use two different footers

           You can define two footers in QWeb and tell wkhtmltopdf:

         -  Use short footer for all pages except last.

        -   Use tall footer with signatures for the last page.


Hope it helps.

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Report missing header, footer and styling when scheduled Vyřešeno
qweb wkhtmltopdf
Avatar
Avatar
Avatar
Avatar
Avatar
7
úno 19
7222
Report text and header is overlaps when description is too long in QWeb report line.
qweb report wkhtmltopdf
Avatar
Avatar
1
úno 24
3977
Two paper formats for one report
qweb report paperformat
Avatar
Avatar
Avatar
Avatar
3
kvě 24
4035
Qweb external link is OK in HTML but KO in PDF
pdf qweb wkhtmltopdf
Avatar
Avatar
1
zář 19
8416
Qweb report : Paper-format : What is Output DPI Parameter ? Vyřešeno
qweb odoo paperformat
Avatar
Avatar
1
kvě 19
10798
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now