How to delete a blank row without deleting a shape?Attachment documents is sourceFile.Docx and targetFile.docx,In the targeFile, I marked it with a red figure.I use code:
if(paragraph.ToString(Aspose.Words.SaveFormat.Text) == "\r\n")
p.Remove();
This code also removes shape, which is not what I want.
Desktop.zip (410.2 KB)