Add image to word document's each page

Thank you very much, Adam!
It seems that everything works fine right now.

Hi Adam, we might have found a bug in the code:

The code that retrieves all nodes on page is not returning items (paragraphs) which are on the first line/row one a page for pages above 1.

So basically it gives me the correct values for the first line of page 1, but for pages after page 1 it will not return paragraph node for the first line on the page.

List pageNodes = pageFinder.RetrieveAllNodesOnPage(pageNum, true);

Let me know if this makes sense.

Brian

Hi Brian,
Thanks for your inquiry. Yes this makes sense but could attach the document you are having trouble with here so I can test it directly. I will take a closer look into it for you.
Thanks,

Hi Adam, sure attached is the test document.

If I open that doc on my system in MS Word 2010 I will see 2 pages, Aspose will only show it on 1 page. First line from second page in MS Word will be shown at the bottom on first page in aspose.

Not sure if there is much that can be done about this.

Thanks

Hi Brian,

Thank you for additional information. I managed to reproduce the problem on my side. It seems there is some problem with our rendering engine. For example, if you try saving your document to PDF you will get the same result. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,

Hi Adam, your code does not work in aspose 10. It worked in previous versions ok.

The code now returns the whole file content, not the individual page.

Any chance you could have a look at it to see if you can get it working with aspose 10?

Thanks

Hi there,
Thanks for your inquiry.
You’re correct, this was a small bug on my end which is now fixed and reattached.
Thanks,

Thanks Adam, that works but there is still one odd bug.

The code will not copy the first line of text for page 2 and above.

It copies the first line of text for the first page, but for page 2, 3 etc the first line is removed.

Another problem is if their is an ordered list that spans two pages, when the pages are split, the list order is not keep, eg its broken into 2 lists.

I know in the MS Word api there is an option to convert lists to text before you break up the pages, that way the structure is keep.

Any ideas?

Thanks

Hi Brian,
Thanks for your inquiry.
Could you please attach the document here you are having trouble with? I will check this further for you and provide some feedback.
Regarding the issue with the lists, I was unable to reproduce any issue like this during testing. Could you please post an example here as well? Also you may want to use the small fix found in this thread here, this might be what you are looking for.
Thanks,

Thanks Adam, attached in a zip file is the code I am using to split the page.

Also attached is the word file I was testing.

I rely appreciate your help.

Brian

Hi there,
Thanks for your inquiry.
I managed to reproduce the issue on my side. Your request has been linked to the appropriate issue. You will be informed as soon as it is resolved.
This is an issue with the rendering engine which positions the first few paragraphs on the pervious page, most likely because of the image on the first page.
Thanks,

The issues you have found earlier (filed as WORDSNET-4518;WORDSNET-4816) have been fixed in this .NET update and in this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as WORDSNET-2978) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(55)