I have a form which will output a receipt which I would like broken into several pages. My page structure is a page controller with several pages inside. I have checked the option "Force Page Break Before on Receipt" on each of the pages, but no page breaks appear on the receipt. The only time page breaks are shown is when there are only two pages in my page controller.
How can this be fixed?
For anyone with the same issue - This was fixed by adding
to the style for our page wrapper block. Apparently float:left is is the default and breaks PhantomJS
we also have many format/layout issues with pdf receipts for Maestro forms; mismatched heading styles, lots of white space. elements out of order, text does not wrap, and others.
I have raised another Q&A topic for that:
I understand that the engineering team are looking at replacement for PhantomJS, and I have investigated using iText, but have not reached a satisfactory solution as yet.
Any progress on this issue would be appreciated.
Is it Maestro or Composer? Sounds like Composer to me.
If Composer: Do you use tables? This style can help - tr- td- tables:
page-break-inside: avoid !important;
Also, try to add page breaks (pdf) components where you want the break.
This issue is appearing in Maestro. We have talked with Avoka about it and it seems to be a bug. They have submitted this issue to the engineering team, hopefully it is resolved soon.
We are also experiencing this issue.