Re: ports/textproc/wkhtmltopdf: coredump

Robert Nagy <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On 18/08/26 10:26 +0200, Denis Fondras wrote:
> Le Mon, Aug 17, 2026 at 09:00:29PM -0000, Stuart Henderson a écrit :
> > On 2026-08-17, Denis Fondras <[email protected]> wrote:
> > > Hello,
> > >
> > > I am trying to use textproc/wkhtmltopdf to convert a document to PDF.
> > 
> > Strongly recommend not doing that, it uses special modified builds of
> > very old qt5/qtwebkit that are not seeing security fixes etc, it is
> > really only there for odoo rendering of specific generated html that
> > afaik does not tickle the bugs too badly.
> > 
> > Try headless chromium/iridium/etc instead, e.g. with these flags
> > 
> > --headless --disable-gpu --print-to-pdf=/tmp/x.pdf https://www.openbsd.org/
> > 
> > N.B. unveil applies, so write to /tmp or ~/Downloads etc unless changing
> > the permitted dirs.
> > 
> 
> Thank you for your message. Unfortunately, my original problem comes from Odoo
> which cannot generate a pdf invoice (same coredump as a manual run).
> 

I assumed you were trying to use odoo. wkhtmltopdf usually fails when there
are missing or empty elements in the source invoice.
i have had issues with this and they were always fixed by modifying the templates
to be proper

wkhtmltopdf probably can also be fixed, i just need an html that i can work with
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.