[SOLVED] wkhtmltox in mageia6

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] wkhtmltox in mageia6

Postby bitit » Jan 9th, '19, 11:29

good morning, how can install wkhtmltox in mageia6?

Thank you
Enrico
Last edited by bitit on Jan 11th, '19, 16:42, edited 1 time in total.
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01

Re: wkhtmltox in mageia6

Postby bitit » Jan 9th, '19, 18:27

ok, i have done
Code: Select all
npm install wkhtmltopdf
npm install wkhtmltox


but when i do a print test in odoo , odoo reply that don't find wkhtmltopdf; but in /usr/lib/node-modules i can see the module installed

what i have miss?
Enrico
Last edited by isadora on Jan 9th, '19, 21:20, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01

Re: wkhtmltox in mageia6

Postby doktor5000 » Jan 11th, '19, 02:15

That module is only a node.js wrapper for the actual wkhtmltopdf binary. Did you install that, too ?
https://wkhtmltopdf.org/downloads.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: wkhtmltox in mageia6

Postby bitit » Jan 11th, '19, 16:26

yes, i have try but odoo give me this error

Code: Select all
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/odoo/addons/report/controllers/main.py", line 96, in report_download
    response = self.report_routes(reportname, docids=docids, converter='pdf')
  File "/usr/lib/python2.7/site-packages/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/odoo/addons/report/controllers/main.py", line 45, in report_routes
    pdf = report_obj.with_context(context).get_pdf(docids, reportname, data=data)
  File "/usr/lib/python2.7/site-packages/odoo/addons/report/models/report.py", line 192, in get_pdf
    save_in_attachment = self._check_attachment_use(docids, report)
  File "/usr/lib/python2.7/site-packages/odoo/addons/report/models/report.py", line 326, in _check_attachment_use
    pdf = base64.decodestring(pdf)
  File "/usr/lib64/python2.7/base64.py", line 328, in decodestring
    return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or buffer, not None
Last edited by isadora on Jan 11th, '19, 17:28, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01

Re: wkhtmltox in mageia6

Postby bitit » Jan 11th, '19, 16:41

ok solved ..

https://github.com/odoo/odoo/issues/15969


Downloaded the new wkhtmltopdf.
Extracted . (tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz)
Backup old one. ( mv /bin/wkhtmltopdf /bin/wkhtmltopdf_old) Or /usr/bin/
Copy the new file. (cp wkhtmltox/bin/wkhtmltopdf /bin/)

>>>> Delete the current invoice/quote and create a new one and try.<<<<

whit new invoice, work.

Thank you
Enrico
bitit
 
Posts: 162
Joined: Feb 3rd, '16, 14:01


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron