Hi,
I want to disable the “Link to Previous” option in each page from document using aspose.java.
Please help me to share the code logic/ method
Thanks in Advance !!
Hi,
I want to disable the “Link to Previous” option in each page from document using aspose.java.
Please help me to share the code logic/ method
Thanks in Advance !!
You can disable the ‘link to previous’ option in Word documents by using the following Aspose.Words for Java code. Hope, this helps.
com.aspose.words.Document document = new com.aspose.words.Document("E:\\Temp\\input.docx");
for(Section sec : document.getSections()){
sec.getHeadersFooters().linkToPrevious(false);
}
document.save("E:\\Temp\\output.docx");
Thanks for your response !!
this code doesn’t support to disable the link to previous in header & footer section
Document destinatinDoc = new Document(“E:\Temp\input.docx”);
for (Section section : destinatinDoc.getSections()) {
section.getHeadersFooters().linkToPrevious(linktoPrev);
}
Also, I am facing another issue in header section as how to remove the “space after paragraph” option into header table section.
Please help me to try this issue.
To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.