This project has moved. For the latest updates, please go here.

Too big size of new Document. Use method InsertDocument()

Feb 19, 2014 at 10:16 AM

Using the latest version from source code.
           Stream stream = GetTemplateStream();
            container = DocX.Create(@"c:\new.docx");
            container.Save(); // empty file new.docx created ~8 Kb

            document = DocX.Load(stream); // loading template file  ~100 Kb
            container.InsertDocument(document); // add document into container
            container.SaveAs(@"c:\after.docx"); // result file after.docx ~500 Kb
The resulting file is opened normally, but for some reason a large size.
What is the reason?