Hi, is there any better way to fix multipages pdf autocropping like my problem here?
https://imgur.com/VVLGAZU
Currently i have to add like 2-3 empty lines where the cut-off occurs so that the pdf looks good.
Hi, is there any better way to fix multipages pdf autocropping like my problem here?
https://imgur.com/VVLGAZU
Currently i have to add like 2-3 empty lines where the cut-off occurs so that the pdf looks good.
This look like the business design,
I haven’t been able to recreate an overflow like that. Have you customized the design at all? And does the design break like this consistently for you?
Finally, can you advise which PDF engine is being used? Snappdf, hosted_ninja or Phantom.
Yes, it’s a custom business template and using hosted_ninja pdf engine. I did a few customisation like:
I think the layout override via js might causing this. Will try out without them and try to fix this.
@david
tried that, but it moved the whole table to the second page instead.
break-inside:avoid;
You may need to target tr/td/th also as it sounds like it is splitting on the tr
something like
table tr td, table tr th {
page-break-inside: avoid;
}
this fixed it for now, thanks for your help!
#product-table tr {
break-inside: avoid;
page-break-inside: avoid;
}
Supported by Invoice Ninja and Event Schedule