frappe / print_designer

Visual print designer for Frappe / ERPNext
GNU Affero General Public License v3.0
179 stars 101 forks source link

Print Misalignment with Margins #277

Closed aceIsHere closed 3 weeks ago

aceIsHere commented 3 weeks ago

Setup

ERPNext: v15.26.1 Frappe Framework: v15.29.0 Frappe HR: v15.22.0 Print Designer: v1.2.0

wkhtmltopdf: 0.12.6

The print format looks fine in the designers tab and its preview settings but while trying to print it from a doctype's default print form panel (both the preview and the print) it comes out misaligned with the margins. Similar to an issued (https://github.com/frappe/print_designer/issues/273) raised.

image

Also have crosscheck page size in print setting of the designer and default print form panel to A4

Print Settings of Designer: image

Default print settings: image

maharshivpatel commented 3 weeks ago

@aceIsHere you need to install wkhtmltopdf with qt pacthed https://github.com/frappe/print_designer?tab=readme-ov-file#faq

maharshivpatel commented 3 weeks ago

@aceIsHere closing this as it is due to incorrect wkhtmltopdf version in your setup. please open new issue if you face any other issue. Thank you.

aceIsHere commented 3 weeks ago

Upgrade the versions as instructed, misunderstood it as a comment rather than an actual patch. The situation has improved, issue still persists however.

wkhtmltopdf 0.12.6.1 (with patched qt)

Have shared the images in negative to better highlight the margins and boundaries.

image

image

Both print designer and the default built-in print functionality page settings have been set to a4

I have to fight with the print designer to get my table/rectangle boundaries within a single page, this is especially noticeable as stark difference in the vertical coordinates, If I move my lower border in print designer to its actual designated places it just overflows by creating it on two pages in the print preview of the built-in printing pane.