Free Support Forum -

Remove images from Header

Hi there,
I’m trying to remove an image from the header of a document.
final Document doc = new Document(TMPPath);
for (Section sect : doc.getSections()) { sect.getHeadersFooters().getByHeaderFooterType(HeaderFooterType.HEADER_FIRST).getRange().delete();

What am I missing?
I’ve also tried .deleteShapes();

Best regards


Please ZIP and attach your input Word document here for testing. We will investigate the issue on our end and provide you more information.