PDF borked. Any clues from the pro's would be great, thanks

Hi all, new member here.
I installed the Bitnami OVA a few days ago and I’m getting an error when printing to PDF such as -

Traceback (most recent call last):
File “env/lib/python3.10/site-packages/pdfkit/configuration.py”, line 35, in init
with open(self.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or directory: b’’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 94, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 54, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 47, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1620, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/print_format.py”, line 133, in download_pdf
pdf_file = frappe.get_print(
File “apps/frappe/frappe/init.py”, line 2053, in get_print
return get_pdf(html, options=pdf_options, output=output)
File “apps/frappe/frappe/utils/pdf.py”, line 38, in get_pdf
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)
File “env/lib/python3.10/site-packages/pdfkit/api.py”, line 72, in from_string
r = PDFKit(input, ‘string’, options=options, toc=toc, cover=cover, css=css,
File “env/lib/python3.10/site-packages/pdfkit/pdfkit.py”, line 45, in init
self.configuration = (Configuration() if configuration is None
File “env/lib/python3.10/site-packages/pdfkit/configuration.py”, line 38, in init
raise IOError(‘No wkhtmltopdf executable found: “%s”\n’
OSError: No wkhtmltopdf executable found: “b’'”
If this file exists please check that this process can read it or you can pass path to it manually in method call, check README. Otherwise please install wkhtmltopdf - Installing wkhtmltopdf · JazzCore/python-pdfkit Wiki · GitHub

Does this suggest the Bitnami image is missing some python modules maybe?
Any help to get things working and updated would be hugely appreciated.

Cheers and thanks
Martin

“wkhtmltopdf” is not installed on your system. Install it with following command, error will resolved.

apt-get install xvfb libfontconfig wkhtmltopdf

ok thanks. it does convert to a PDF, of sorts.
Not exactly the visual representation I was looking at. I think I’ll use local print to my PDF driver is a better look.
thank for your help