@ImTryingOkay Page and Page Count are represented by fields, not by simple text. You can see these fields by pressing
Alt+F9 in MS Word. You can use code like the following to remove them, but Note the code is an example and I assumed that there is
PAGE/NUMPAGES in the first page footer:
Document doc = new Document(@"C:\Temp\in.docx");
// Get the footer.
HeaderFooter first = doc.FirstSection.HeadersFooters[HeaderFooterType.FooterFirst];
// Page number and page count are represented using fields. it is required simply romve these fields.
// Also it is required to remove Run node between these fields, which represents slash.
foreach (Field field in first.Range.Fields)
if (field.Start.FieldType == FieldType.FieldPage)
// This will remove slash. An additional check can be added here.
if (field.Start.FieldType == FieldType.FieldNumPages)