PageSetup.RestartPageNumbering does not affect after conversion from RTF to DOCX, FlatOPC using C#

I start with loading an RTF document that has a section break that forces a page numbering restart to page one, and the bool property RestarPageNumbering is not being saved correctly when saved to FlatOPC, DocX, Doc. The property is loaded correctly and can be seen by referencing the Section.PageSetup.RestartPageNumbering property.
One thing to note is that Doc behaves differently than the rest.
Also PDF seems to work just fine which leads me to believe that the post here is related.

string inFile = @“c:\temp\rtf2\bug.rtf”;
Document originalRTFDocument = new Document(inFile);

originalRTFDocument.Save(@“c:\temp\rtf2\bug.doc”, SaveFormat.Doc);
originalRTFDocument.Save(@“c:\temp\rtf2\bug.docx”, SaveFormat.Docx);
originalRTFDocument.Save(@“c:\temp\rtf2\bug.pdf”, SaveFormat.Pdf);
originalRTFDocument.Save(@“c:\temp\rtf2\bug.xml”, SaveFormat.FlatOpc);
originalRTFDocument.Save(@“c:\temp\rtf2\bugxml.xml”, SaveFormat.WordML);

Has anyone else seen anything like this?
–Clayton Meisman

Hi Clayton,

Thanks for your query. I have tested the scenario and able to reproduce the same problem at my end. I have logged this issue in our issue tracking system. You will be notified via this forum thread once this issue is resolved.

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


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