Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

wkhtmltopdf (0.12.2.1) PDF Reports are not correctly formatted on Ubuntu:

Subscribe

Get notified when there's activity on this post

This question has been flagged
13 Replies
30384 Views
Avatar
Nigel Butler

Having installed Odoo 8.0 on Ubuntu server 14.04.2 and installing the latest wkhtmltopdf (0.12.2.1) when I generate any PDF the font is too large and the format for the report is not correct.

The preview in Edit Company Data > Report Configuration > Preview Header / Footer, looks great. See this JPEG [https://www.dropbox.com/s/p25lolvjv35vwi8/Header-Preview.JPG?dl=0]

Any PDF report that is generated the company name, and all address details are all going onto multiple lines, which then covers the customers address. For example the Picking List, see this JPEG [https://www.dropbox.com/s/jw59rz4f1yca8jo/Picking-List.JPG?dl=0]


When I open the same Database on a Windows installation of Odoo Version 8.0-20150629 the reports all look great, but in Ubuntu they cannot be used. 

I have tried changing the font in Edit Company Data > Report Configuration >  and also reducing the font size in the header data Edit Company Data > Report Configuration > RML Header, but this does not help.

When I change the report output to HTML Settings > Reports > Report Type, the HTML File is correctly formatted, just not the PDF.

Does any one know what the issue is and how it can be resolved on the Ubuntu Server?

1
Avatar
Discard
Guillaume Seran

After installing wkhtmltopdf I wrote the path in odoo config file : webkit_path = /usr/local/bin/wkhtmltopdf I don't know if can help you !

Nigel Butler
Author

Guillaume, I have just tried adding"webkit_path = /usr/local/bin/wkhtmltopd" to /etc/odoo-server.conf and then restarting the server but it does not seem to have solved the issue.

Avatar
moamed
Best Answer

Yes that's right, we've resolved the issue by add
 System Parameters : add key = report.url, value= http://127.0.0.1:8069/ 
wkhtmltox-0.12.1_linux-trusty-amd64.deb

2
Avatar
Discard
Meziani Hacene

it works for me, thank you

Avatar
David Bertha
Best Answer

If you check the odoo log file, do you see some GET lines between

POST /report/check_wkhtmltopd and POST /report/download ?

Example :

2015-07-07 11:45:52,236 3528 INFO new_dev werkzeug: 192.168.56.1 - - [07/Jul/2015 11:45:52] "POST /report/check_wkhtmltopdf HTTP/1.1" 200 -
2015-07-07 11:45:53,157 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -
2015-07-07 11:45:53,162 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /website/static/src/css/website.css HTTP/1.1" 200 -
2015-07-07 11:45:53,173 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -
2015-07-07 11:45:53,179 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -
2015-07-07 11:45:53,504 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -
2015-07-07 11:45:53,603 3528 INFO new_dev werkzeug: 192.168.56.1 - - [07/Jul/2015 11:45:53] "POST /report/download HTTP/1.1" 200 -

If not, you can try this :

Settings ==> Parameters ==> System Parameters : add key = report.url, value= http://127.0.0.1:8069/

From : https://github.com/odoo/odoo/issues/2934

2
Avatar
Discard
Avatar
Ray Carnes
Best Answer

0.12.2.1 is the wrong version.

 

 From

https://www.odoo.com/documentation/8.0/setup/install.html#deb 

1
Avatar
Discard
E.M.

I have the same issue than Nigel, downgrading to 0.12.1 did not fix anything, still Invoices appear with the default font.

Avatar
Bohdan Lisnenko
Best Answer

I have similar issue. This is not problem with wkhtml but with report template. Try Odoo 9 there are improvements on reports template

0
Avatar
Discard
Avatar
Mitul
Best Answer

Has anyone found the solution.

My company name overlaps customer name and address

0
Avatar
Discard
Avatar
Jatupong
Best Answer

Hi, if anyone still can't make it work. please try again to remove 12.2.1 (ensure it was removed completely) then try to install 12.1.2 from http://nightly.odoo.com/extra/. i'm using amd64.


in case you get dependency error about libjpeg62-turbo, download from this link and then install "http://ftp.tw.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.4.1-2_amd64.deb


after all dependency install then try install wkhtmltox-0.12.1.2_linux-jessie-amd64.deb  again, i'm quite sure at least it should book.


good luck.

0
Avatar
Discard
Avatar
Tom Schiets
Best Answer

Settings ==> Parameters ==> System Parameters : add key = report.url, value= http://127.0.0.1:8069/ 
worked perfect for me!

0
Avatar
Discard
Avatar
Ankit H Gandhi(AHG)
Best Answer

Hello 

Please follow below step:

Download wkhtmltopdf patched with qt using below command

 - sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Here, replace "trusty" with your OS name and if 64 bit only then keep "amd64" like that , otherwise change it to "i386" and down load the deb file.

After that execute the following commands,

- cd ~/Downloads

- sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

Now, check wkhtmltopdf version with below command,

- wkhtmltopdf -V

Hope above step help full.

Best Thanks,

Ankit H Gandhi.

0
Avatar
Discard
Avatar
Nigel Butler
Author Best Answer

 I am not sure how I can respond to your answers, when I try and comment on them it says I do not have enough points.

Ray Carnes - I have now downgraded to 0.12.1. If you fill in all the fields in the company address then it is still too long and covers up the "Ship To" address below it. But I think this has fixed the issue. 

David Bertha -Is this the Odoo Log File you are referring too? I added the key = report.url, value= http://127.0.0.1:8069/ to SYSTEM PARAMETERS, and it does not appear to have made any difference.  

0
Avatar
Discard
Mitul

Did you find a solution?

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

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

Sign up
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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