Hi
I am using the Aspose PDF generator 8.5, using the XML method. I am also using Visual Studio 2010, and .NET 4.0.
I am experiencing some problems with the use of multiple sections, and paging.
The contributing factors seem to be:
- Create a section with headers and/or footers, and some text. It need only be a single page.
- Create a second section with different headers and/or footers, and several Text elements.
- Set the IsOnOddPage and MarginTop attributes of the first Text element in the second section.
When the PDF is rendered, the following problems are evident:
- The blank (even) page between the end of the first section, and the start of the second section contains the header and footer from the second section (when it really should be either the first section’s or blank)
- The first Text paragraph actually appears below the second (and some of the others). This seems to depend on the size of the MarginTop attribute. If you remove that, this doesn’t occur.
Maybe I’m doing something wrong, but this doesn’t seem like correct behaviour to me.
I have attached a sample XML source file to illustrate the problem.
Thanks
Chris Fairall