Is there a way to encode printing across multiple labels in ZPL

I’m looking to replicate the behavior observed when printing a Zebra printer configuration report wherein the printer “knows” where the gaps are between the labels and prints the report content across multiple labels without printing on the gaps.

Use case is if I need to print label content (e.g. a pack slip) that might vary in length.

Would be great if there is a way to include a header/footer to link the printed labels together in case of separation…