Document page break management.

Dec 12, 2013 at 3:54 PM
Thanks for this useful library.

Is there any way to do the following with Novacode.DocX
or with .Net while using Novacode.DocX
  1. Determine page position on current page
    (ie remaining lines or remaining inches/cm in document)
    after inserting each paragraph?
  2. Insert a page break based on remaining page space.
    I can see the document.InsertSectionPageBreak method but need a page position
    reference in order to use it effectively.
Please advise
Dec 24, 2013 at 11:36 PM
I am planning on doing this, too, and I will keep track of when I need to insert a page break by counting how many lines have been added to the doc or I've hit a new chapter (depending on font type and size, as well as document and margin dimensions, the number of lines will differ, of course.
Sep 22, 2015 at 10:36 AM