title: PDFsharp & MigraDoc: PDF layout page ending
body: <p>I am using PDFsharp and MigraDoc to create PDF documents. And yesterday I faced with problem of page ending. I have a loop with data for example for 10 items. In each iteration I need to create such document -> <a href="https://i.stack.imgur.com/szOM0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/szOM0.png" alt="pdf example"></a></p>
  
  <p>And then save it as one PDF document. As we see I have several blocks on the page which can dynamically increase. How can I detect ending of the page end continue draw string on next page? And how can I detect ending of a first paragraph to add second (or just attach to the end)? I tried use paragraph.AddText() and it doesn't continue on the next page, just go into nowhere. From documentation of PDFsharp and MigraDoc I can’t find correspondent example. Here is my attempts to do it for one iteration <a href="https://yadi.sk/d/WgZprdTZzqLaY" rel="nofollow noreferrer">download example</a>, <a href="https://yadi.sk/d/jLtYHSsazqQsh" rel="nofollow noreferrer">example 2 download</a>. I will be very grateful for some pieces of code which can help me. </p>