Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Run wkhtmltopdf under docker
byHi Graeme,I have tried your approach, and works like a charm :)Certainly the main issue was the smart shrinking. We are designing the check printing in a standard format called DLT103 - https://github.com/OCA/account-payment/tree/9.0/account_check_printing_report_dlt103 - and the dimensions need to be perfect in order to ensure proper alignment with the checl.I created a new file 'wkhtmltopdf' as follows:#!/bin/sh/usr/local/bin/wkhtmltopdf-bin --disable-smart-shrinking "$@"On Thu, Apr 13, 2017 at 6:08 AM, Graeme Gellatly <gdgellatly@gmail.com> wrote:wkhtmltopdf 0.12.5 looks promising however is not here yet. I am having good results with 0.12.4 however in order to get sizing the same as 0.12.1 need to add --disable-smart-shrinking to the commandline. It does however resolve the dpi issues on Linux of 12.3 and 12.2. (Mac still broken, windows idk)Jordi,Let me start with the presumption that really your preference is not to dockerize wkhtmltopdf. I too had similar trouble with stretch, which as its about to become stable I guess Odoo is about to have same problem.
My thoughts are just to write a simple bash script called wkhtmltopdf which takes the arguments, adds the missing option and passes to wkhtmltopdf-bin (renamed binary).On Wed, Apr 12, 2017 at 7:53 PM, Jordi Ballester Alomar <jordi.ballester@eficent.com> wrote:Hi! Has anyone attempted to run wkhtmltopdf under a docker container (separate from odoo).We are struggling to install normal.wkhtmltopdf 0.12.1 in debian stretch, and docker seems so much easier in principle._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe--Jordi Ballester AlomarCEO & Founder | EficentTwitter: https://twitter.com/jbeficent_erp | Linkedin: https://www.linkedin.com/in/jordiballesteralomar_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
Run wkhtmltopdf under docker
byForgeFlow, S.L., Jordi Ballester Alomar-
Re: Run wkhtmltopdf under docker
byForgeFlow, S.L., Jordi Ballester Alomar -
Re: Run wkhtmltopdf under docker
byWeb-veistämö Oy/Avoin.Systems, Miku Laitinen. -
Re: Run wkhtmltopdf under docker
byForgeFlow, S.L., Jordi Ballester Alomar -
Re: Run wkhtmltopdf under docker
by "robert@redo2oo.ch" <robert@redo2oo.ch> - 12/04/2017 22:43:53 - 0