I can't seem to get automatic pagination to work for pdf generation where there are multiple line being added to the body of the pdf document. Did something change in v1.5? I didn't have this problem with v1.3.
EX: I created a header and footer section with textframes and tables and for the body i added a textframe and a table and a for/next loop that populates a bunch of rows.
Also, to specify the area of the document for the body, how that set up that area? This is how I set it up for v1.3. I'm not sure this is working correctly for v1.5
Code:
Section section = _document.AddSection();
PageSetup pgs = new PageSetup()
{
PageFormat = PageFormat.Letter,
PageWidth = new Unit(8.5, UnitType.Inch),
PageHeight = new Unit(11, UnitType.Inch),
TopMargin = new Unit(9.87, UnitType.Centimeter),
LeftMargin = new Unit(0.5, UnitType.Inch),
RightMargin = new Unit(0.5, UnitType.Inch),
BottomMargin = new Unit(8.3, UnitType.Centimeter),
Orientation = Orientation.Portrait
};
section.PageSetup = pgs;
Any help is greatly appreciated.
Thank you