Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

Weird text in the generated PDF in MacOS 14.5, Odoo 16 on-premise

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
macosxOnPremiseodoo16
8 Replies
5298 Rodiniai
Portretas
Hamza Benzaoui

Hello everyone

I have been getting this weird generated PDF (images are below) in a MacBook Pro Apple Silicon, the logo looks fine but the text doesn't and sometimes it's not shown at all, it's in Quotation, Sales Order...

I have tried everything:

  • Reinstalled wkhtmltopdf and install older versions
  • Adding report.url : http://127.0.0.1:8069
  • Adding webkit_path: /usr/local/bin/wkhtmltopdf
  • Install what supposed to be and arm version package wkhtmltox-0.12.6-1.macos-cocoa.pkg

And nothing works , the thing is sometimes it works just fine and sometimes doesn't and i can't understand the pattern.

Has anyone encounter this error before I would be glad if you can help

Images of the generate PDF:





0
Portretas
Atmesti
Mohammed Ajmal

I do have the same issue, were you able to solve it?

Portretas
Ajin A K
Best Answer

Hi,

Please ensure wkhtmltopdf has proper permissions to access the files and directories it needs. Run chmod +x /usr/local/bin/wkhtmltopdf to make it executable and verify the webkit_path points to the correct location of the installed wkhtmltopdf. You can check the path with which wkhtmltopdf.

1
Portretas
Atmesti
Hamza Benzaoui
Autorius

I did run "sudo chmod +x /usr/local/bin/wkhtmltopdf" and add webkit_path: /usr/local/bin/wkhtmltopdf to the system parameters as well. and unfortunately I keep getting these weird PDF from time to time. am thinking it has issues with the Rosetta 2 as there are not arm version for the wkhtmltopdf.

Ajin A K

Check repositories like https://packagist.org/packages/houseoftech/wkhtmltopdf-arm64 that offer pre-built ARM versions.

Portretas
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,
Can you try installing wkhtmltopdf 0.12.5 and see if it makes any difference ?
Thanks

1
Portretas
Atmesti
Hamza Benzaoui
Autorius

Hey Niyas, thanks for your replay, and I did. I already tried that as i had same issues with wkhtmltopdf 0.12.6 in ubuntu in the past and i downgrade to 0.12.5 and it worked fine in Ubuntu, so i thought I'll do the same in MacOS, but unfortunately it didn't work and kept getting those weird text pdfs in 0.12.5 as well

Portretas
Leofren Technologies
Best Answer

Hello,

Are you able to solve the issue?

0
Portretas
Atmesti
Portretas
mo man
Best Answer

I have the same problem on m2 pro running macOS 15.2. 

Tried to install in rosetta mode and odoo prints wrong fonts, no fonts and blanks. I have tried the the webkit path, report.url in all different ways possible, nothing works. Sometimes it will print properly but mostly its completely wrong.

I have installed 0.12.6 and 0.12.5 all version of them as well

Has anyone found a solution to this?

0
Portretas
Atmesti
mo man

Anybody found a solution to this?

mo man

I tried the Mac ports version but unfortunately it wasn’t qt patched and so it didn’t work.

mo man

It’s finally fixed!!
This now appears to be working correctly on macos26 beta 1.

Portretas
Gracious Joseph
Best Answer

The PDF rendering issue you are experiencing on MacOS when using Odoo might be related to the wkhtmltopdf configuration, font rendering, or compatibility with the macOS platform. Below are some steps and suggestions to resolve this issue:

Troubleshooting Steps:

1. Font Rendering Issue

  • Ensure Fonts Are Installed Correctly:
    • Install any custom fonts required for the report on the MacOS system.
    • Check if the fonts used in the Odoo templates are supported by wkhtmltopdf.
  • Embed Fonts in the Template:
    • Use CSS in your report templates to explicitly include or embed fonts.
    @font-face {
        font-family: 'CustomFont';
        src: url('path/to/font.woff') format('woff');
    }
    body {
        font-family: 'CustomFont', sans-serif;
    }
    

2. Verify wkhtmltopdf Configuration

  • Install the Correct Version:
    • Use version 0.12.5 or 0.12.6 of wkhtmltopdf, which is known to work well with Odoo. Ensure it matches the architecture (ARM or Intel-based Mac).
  • Set Path Correctly:
    • Confirm the path in odoo.conf:
      [options]
      webkit_path = /usr/local/bin/wkhtmltopdf
      
    • Restart Odoo after making changes:
      sudo service odoo restart
      
  • Test Command-Line Rendering: Run wkhtmltopdf from the terminal to check if it produces consistent results:
    wkhtmltopdf http://example.com test.pdf
    

3. Update Report URL

  • Add the following to odoo.conf:
    report.url = http://127.0.0.1:8069
    
  • Restart Odoo to apply the changes.

4. Debug Rendering Behavior

  • Open browser developer tools and inspect how the report appears in the browser before rendering.
  • Check for any errors in Odoo's log file during report generation.

5. Verify CSS and Template Consistency

  • Ensure consistent font and CSS usage in your report template.
  • Sometimes, conflicting CSS rules can cause issues with PDF rendering.

Recommendations for Better Compatibility

Switch to a Different PDF Rendering Library

If wkhtmltopdf is unreliable, consider switching to an alternative library like WeasyPrint. You can install and configure it for Odoo as follows:

  1. Install WeasyPrint:
    pip install weasyprint
    
  2. Configure Odoo to Use WeasyPrint: Modify your report templates or write a custom module to use WeasyPrint instead of wkhtmltopdf.

Check for Odoo Updates or Patches

Verify if there are any updates or patches for your version of Odoo that address PDF generation issues.

Use a Virtual Environment

Run wkhtmltopdf in a virtualized Linux environment (e.g., Docker) to avoid Mac-specific issues.

Summary

This issue likely stems from font rendering or wkhtmltopdf inconsistencies on MacOS. Start by verifying the fonts, CSS, and wkhtmltopdf installation. If the problem persists, consider alternative solutions like WeasyPrint or using a virtualized environment.

If you need help with any of these steps, let me know!

0
Portretas
Atmesti
Portretas
Xabier Arrabal Amat
Best Answer

I had the same problem, and clearing the browser cache resolved it. Try clearing your browser’s cache and then reload the page. On most browsers, you can do this by pressing Ctrl+Shift+Delete (or Cmd+Shift+Delete on macOS) and selecting the cache to clear.

0
Portretas
Atmesti
Portretas
Paul Minard
Best Answer

Hi,

Has your problem been solved? 

If so, could you post the solution? I have a Mac M1 and I have the same problem with odoo V17.

0
Portretas
Atmesti
Sagar Mokariya

i am also looking for the same solution, This issue is may be wkhtmltopdf with rosetta translation. If you got any solution on this update here we are waiting for this. May @odoo Need to do something on this.

Portretas
Hamza Benzaoui
Autorius Best Answer

Notice how it's different each time I print a pdf:

  1. https://imgur.com/a/LNU0Idu
  2. https://imgur.com/a/9yHVYWP
  3. https://imgur.com/a/gL6I41m
  4. https://imgur.com/a/Niphs0D

Notice how the first time the text was not Bold as the second and the third time then it was empty in the forth time, I just don't get it some times it print just fine and sometimes not! 

0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

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

Registracija
Related Posts Replies Rodiniai Veikla
Automatic Batch Transfer Solved
odoo16
Portretas
Portretas
1
rugp. 25
1421
Automatic Batch Transfer
odoo16
Portretas
Portretas
1
geg. 25
2240
Bank statement import via email
odoo16
Portretas
0
lapkr. 24
2175
Display 'total' ( Like in Sale Order) on TOP
odoo16
Portretas
Portretas
2
spal. 24
2210
I have a manufacturing type product that comes out with 0 stock despite having materials.
odoo16
Portretas
0
rugp. 24
1677
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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