3
2
1

We are rendering a PDF, we have a section called "Signatories" (A section within a page), We want add a page break so it becomes its own page in the rendered PDF.

 

I have tried to define a style which contains "page-break-before:always" and applied to the Signatories section, but when I rendered the PDF, it does not  force a new page in the PDF?

 

Can anyone help?

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      I just wanted to bump this up. I've been trying to bump blocks to a new page on receipt using the following custom CSS in a shared style:

      form[name='form'].av-receipt {
      	.page-break-98193 {
      		page-break-before: always !important;
      	}
      }

      This does not work as hoped, and the above hack seems to be a bit of a sloppy way of doing things. Has anyone had luck with this sort of thing? Really one would hope that the apply page break property wouldn't just be on pages, and be included on sections and blocks, but Maestro doesn't allow this currently. It would be worth adding in my opinion though.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        To force a page break, it only seems to work with new pages, no other styling will work.

        So what I did with Signatory is to create a new Page called Signatory, and select "Hide Navigator" to stop it from showing in the online form, so when PDF gets rendered, it will create a new page in PDF. 

          CommentAdd your comment...