Contributors mailing list archives
Re: new python based pdf engimeby
Open for Small Business, Graeme Gellatly
I spent some time, some time ago looking at different pdf engines.
Non HTML Syntax
rml - awful performance at scale, unfriendly syntax, excellent layout capabilties. I actually quite liked rml, except its performance.
libreoffice variants - graphical layout, but not really once you get a few conditionals in there. slow, heavy.
xhtml2pdf - never got as far as testing performance on large docs, would be a dropin replacement,has layout features,but no css framework support which is a dealbreaker. Kind of a cross between wkhtmltopdf and reportlab. Immature project but if it got css framework support, then the page layouting features might make it worth it.
wkhtml2pdf - well the benchmark really, most issues are around layout control and render quality, but they are bad enough that a good replacement would be welcomed - adding bookmarks, signing, backgrounds, svg rendering, variable header and footer, differing results on different servers, even page numbers aren't supported properly etc. Quickish for big docs, slow for little.
Weasyprint - at the time it didn't offer anything extra and was not a drop-in so I didn't do anything, but looking now it looks like it has got loads of love including basic layout support.
puppeteer-pdf/headless chromium - fast, faster than wkhtml2pdf. basic support for layout control through @media css - not sure on integration troubles.
Certainly if I had to choose what to put through more thorough testing now it would be the last two. I know there is a headless chrome OCA PR out there, so probably easy enough to test.
On Wed, Nov 14, 2018 at 1:27 PM Mohamed M. Hagag <email@example.com> wrote:
Personally I didn't find anything even near in performance to wkhtmltopdf, even firefox, chrome and libreoffice. In the last week I was able to get a ~2250 pages Partner Ledger report with ~128,000 lines in less than a minute using wkhtmltopdf after some tweaking to the source html. trying to convert the same html to pdf using libreoffice, chrome or firefox hangs the application or the system. Also I tried AthenaPDF with same results of chrome. the latest version of wkhtmltopdf 0.12.5 is working great in features and performance for reporting in Odoo . My 2 cents Regards, On 11/09/2018 09:51 PM, Xavier Brochard wrote: > Hi > > WeasyPrint, a new python based pdf engine has just released its first stable > version. It is already deployed in New-York city, in UK and in some hospitals. > So I guess it is safe :-) > > It comes from Kozea, a french company based in Lyon. So may be guys from > Akretion knows them already ? > > Their dedicated english web site is https://weasyprint.org/ > And we have just published a french presentation on http://linuxfr.org > > Loo,ks like ic could easily replaced wkhtmltopdf. > > (I'm not advertising for linuxfr.org here. It is just fortuity, to have 2 Odoo > related news in two days). > > -- Librement, Xavier Brochard / Zeroheure « La liberté est à l'homme > ce que les ailes sont à l'oiseau » (Jean-Pierre Rosnay) > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > Post to: mailto:firstname.lastname@example.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe >