frappe / print_designer

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

Rectangle not showing in preview #293

Closed nilpatel42 closed 1 week ago

nilpatel42 commented 1 week ago

Rectangle not showing in preview, Some Time Child Table Set over the Rectangle in Preview,

image

image

Also i Checked

wkhtmltopdf --version
wkhtmltopdf 0.12.6.1 (with patched qt)

ERPNext: v15.27.7 (version-15) Frappe Framework: v15.30.0 (version-15) Print Designer: v1.2.0 (develop)

yamenzk commented 1 week ago

I had the same issue as well, it only happens when you have multiple pages. I assume the issue behind this is that the designer tries to add content from the following page whenever there is blank area on the prior page. A workaround that has worked for me is to add an empty rectangle at the end of every page which will act as a page break.

Note: the height of the rectangle might bug your page dimensions (happened to me on custom dimensions with no header and footer), experiment with its height until you reach a good spot.

nilpatel42 commented 1 week ago

@yamenzk Thank for reply

I tried but not working, can you share SS of your print format ?

maharshivpatel commented 1 week ago

@nilpatel42 rectangle is there it's the border that is removed. fixing this..... you can confirm this by setting color in rectangle's background