Print Designer Issue

Hello,
I created a print format using Print Designer. But when I want to print, the design I made in A4 format becomes smaller. If you look at the screenshot I shared attached, you will understand my problem better. Why does this happen and what do I need to do to fix the problem?

please install the correct / latest version of wkhtmltopdf with qt patched

https://wkhtmltopdf.org/downloads.html

Hello, thanks for your answer I’m facing the same issue, I’ll try to install that.

Also while I’m creating the print format, it stuck and generate the error below in error log then the header part of the report will disappear

Traceback with variables (most recent call last):
File “apps/frappe/frappe/core/doctype/file/utils.py”, line 358, in attach_files_to_document
file.insert(ignore_permissions=True)
doc = <PDPrintFormat: Sales Invoice 02>
event = ‘on_update’
attach_fields = []
df =
value = ‘/private/files/print_designer-sales_invoice_02-preview419306.jpg’
unattached_file = None
file = <File: unsaved>
File “apps/frappe/frappe/model/document.py”, line 283, in insert
self.run_method(“before_insert”)
self = <File: unsaved>
ignore_permissions = True
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
File “apps/frappe/frappe/model/document.py”, line 960, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <File: unsaved>
method = ‘before_insert’
args = ()
kwargs = {}
fn = <function Document.run_method..fn at 0x7f1eeede2520>
File “apps/frappe/frappe/model/document.py”, line 1320, in composer
return composed(self, method, args, **kwargs)
self = <File: unsaved>
args = ()
kwargs = {}
hooks = []
method = ‘before_insert’
doc_events = {'
': {‘on_update’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.core.doctype.file.utils.attach_files_to_document’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date’, ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’], ‘after_rename’: [‘frappe.desk.notifications.clear_doctype_notifications’], ‘on_cancel’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’], ‘on_trash’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’], ‘on_update_after_submit’: ['frappe.workflow.doctype.workflow_action.workflow_action.process_w…
composed = <function Document.hook..compose..runner at 0x7f1eeede25c0>
compose = <function Document.hook..compose at 0x7f1eeede1940>
f = <function Document.run_method..fn at 0x7f1eeede2520>
File “apps/frappe/frappe/model/document.py”, line 1302, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <File: unsaved>
method = ‘before_insert’
args = ()
kwargs = {}
add_to_return_value = <function Document.hook..add_to_return_value at 0x7f1eeede1d00>
fn = <function Document.run_method..fn at 0x7f1eeede2520>
hooks = ()
File “apps/frappe/frappe/model/document.py”, line 957, in fn
return method_object(*args, **kwargs)
self = <File: unsaved>
args = ()
kwargs = {}
method_object = <bound method File.before_insert of <File: unsaved>>
method = ‘before_insert’
File “apps/frappe/frappe/core/doctype/file/file.py”, line 103, in before_insert
self.save_file(content=self.get_content())
self = <File: unsaved>
File “apps/frappe/frappe/core/doctype/file/file.py”, line 534, in get_content
with open(file_path, mode=“rb”) as f:
self = <File: unsaved>
file_path = ‘./ggdev.waves-skipper.com/private/files/print_designer-sales_invoice_02-preview419306.jpg’
builtins.FileNotFoundError: [Errno 2] No such file or directory: ‘./ggdev.waves-skipper.com/private/files/print_designer-sales_invoice_02-preview419306.jpg’