This is a standard print format and there is no customisation done. Also the screenshot is from test server which does not have any customisation in terms of print as well as forms.
Anyone else updated to the latest V11 build and facing similar issue?
we have seen a similar issue, tough different. If you use a recent version of wkhtmltopdf (we use 0.12.5 rather than 0.12.3 which ships with ERPNext), it has a new feature smart-shrinking. This will “optimise” the use of the space. In some cases it shrinks, but might also zoom.
There are different ways to go about disabling this. If you can fork/branch, simply add the “disable-smart-shrinking”: None option to pdf.py. This works like a charm. If not, you might want to rewrite the wkhtmltopdf bash script to add the command-line parameter, something like
Traceback (most recent call last):
File "/home/erpnext/frappe-bench/env/src/pdfkit/pdfkit/configuration.py", line 21, 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 "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 24, in get_pdf
pdfkit.from_string(html, fname, options=options or {})
File "/home/erpnext/frappe-bench/env/src/pdfkit/pdfkit/api.py", line 66, in from_string
configuration=configuration)
File "/home/erpnext/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py", line 38, in __init__
self.configuration = (Configuration() if configuration is None
File "/home/erpnext/frappe-bench/env/src/pdfkit/pdfkit/configuration.py", line 27, in __init__
'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
OSError: No wkhtmltopdf executable found: "b''"
If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 66, in application
response = frappe.api.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/api.py", line 56, in handle
return frappe.handler.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 1036, in call
return fn(*args, **newargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/print_format.py", line 92, in download_pdf
frappe.local.response.filecontent = get_pdf(html)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 32, in get_pdf
if ("ContentNotFoundError" in e.message
AttributeError: 'OSError' object has no attribute 'message'
Once I move the original file it works but again zoomed in
Sorry, then this was not it… but I guess other people using the default print format should observe the same thing…? Have you considered using a custom print format?
No it force doesn’t always help when the dependencies are already present with its own conflict.
sudo apt-get -f install libjpeg62-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libjpeg-turbo8-dev : Conflicts: libjpeg62-dev but 1:6b2-3 is to be installed
libjpeg62-dev : Depends: libjpeg62 (= 1:6b2-3) but it is not going to be installed
wkhtmltox : Depends: libjpeg62-turbo but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Without the package -f install will fix rather than force (alternatively use --fix-broken install, is the same). You’ll have to resolve the conflicts in any case, sorry.
It is confirmed that everyone who will update to latest V11 release with by affected by this pdf issue.
As I asked my dev team to update their local server and they have the same issue now.
This hotfix didnt fix all the deployment, tried it on test/development server it fixed the issue but doesnt seem to fix it on production, while there is no changes done in production .