We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert Image in every page - pagination issue

Hello,


I have explained this issue in this thread as well, but I see it has been deleted for I don’t know what reason.

I am going to explain it again here.

The pagination that aspose has suggested in a few examples is not working in some important cases.
for (int page = 1; page <= doc.PageCount; page++)
{
while (enumerator.MoveNext())
{
// Check if the current paragraph belongs to the target page.
var paragraph = (Aspose.Words.Paragraph)enumerator.Current;
int pageIndex = layoutCollector.GetStartPageIndex(paragraph);
if (pageIndex == page )
{
InsertImage;
}
}
}

For example if you insert a big table that extends on more pages, the pagination goes haywire, as the following pages DO NOT have new paragraphs, so no image/any other object can be inserted there.

I also attached an example project that shows that problem with the file bigtable.docx.

Is there any other way of detecting and inserting an object/image in every page?

Thank you,

Dan

Hi Dan,


Thanks for your inquiry. Please follow this thread for further proceedings. We will get back to you soon.

Best regards,