internal void LoadFromDocument(WordMLTemplate doc) { var buf = doc.GetBuffer(); var newBuf = new byte[buf.Length]; Buffer.BlockCopy(buf, 0, newBuf, 0, buf.Length); this.PutBuffer(newBuf); }