internal void RemovePartById(string partIdentifier) { if (_wordDocument == null) return; var part = GetPartById(partIdentifier); if (part != null) { _wordDocument.MainDocumentPart.DeletePart(part); } } internal string AddImagePart(byte[] bytes)