Simply reading and re-writing code... some errors


#1

Hi, I’m simply trying to use Aspose.Word Trial to read a word document and the re-write it with a different name. This is the procedure:


Document doc = new Document(System.IO.Path.Combine(doc_path, doc_name));

DocumentBuilder builder = new DocumentBuilder(doc);

doc.Save(@“C:\doc_temp.doc”, SaveFormat.FormatDocument);


Unfortunately every time I execute this simply code, “doc_temp.doc” is different with some strange characters. I attach an example with original and modified document.
Could you help me? Thanks a lot!

Marco


#2

Hi Marco,

Thank you for considering Aspose.

This is just because you are using evaluation version. It injects evaluation watermark and garbage text into the resulting document.


#3

Thank you very much for your answer. Anyway, I need to be sure that this problem is caused by trial version, before purchase a licence. Did you see the two documents I attach? Could you please confirm the problem?
Best regards,

Marco


#4

Of course, I saw your documents and it is absolutely indeed that the garbage text as well as the watermark are caused by evaluation version. Don’t worry, licensed version does not have those features.

Here is a technical article describing this:

http://www.aspose.com/Wiki/default.aspx/Aspose.Word/GarbageTextInDocument.html


#5

Thank you again for your help, very useful!