Hi Team,
I’ve tried to remove the line and save it as a DOCX file. I’ve been waiting for more than 10 minutes, and the file still hasn’t been saved. Please do what is necessary.
Document inDoc = new Document("input.docx");
for(Section sect : inDoc.getSections())
sect.getPageSetup().setLineNumberCountBy(0);
inDoc.save("output.docx", SaveFormat.DOCX);
Input: Input.docx (2.9 MB)
Regards,
Mahi