There appears to a bug when loading a file in Word 97-2003 format where a bookmark appears on a line preceded by a Euro sign. Upon loading the file, the bookmark that is on the same line as the Euro sign is extended to encompass the Euro sign. This does not occur when the file to be loaded is in .docx format. Nor does it seem to occur in all cases (of Word 97-2003 document content) but I have attached an example where it does occur.
I have tested this in version 5.2.48.3040 and version 5.5.0.54040 of Spire.Doc and both display the same behaviour.
I used the code below to produce the above behaviour.
- Code: Select all
var doc = new Document();
doc.LoadFromFile(@"C:\PathToFile\Example Input.doc", FileFormat.Auto);
doc.SaveToFile(@"C:\PathToFile\Example Output.doc", FileFormat.Doc);
Login to view the files attached to this post.