Remove Background Image from Word Document before Sending DOCX to Printer for Printing using C# Java

Hello! We have preview with background in our doc. but we want to remove the background when printing. Is that possible?


Please ZIP and upload your sample input Word document (you want to remove background from) here for testing. We will then investigate the scenario on our end and provide you more information. (800.0 KB)


You can remove that Shape node from Word document before sending it to printer. Here is sample code:

Document doc = new Document(@"E:\\Temp\\Sicklist\\Sicklist.docx");

Shape backImage = (Shape)doc.GetChildNodes(NodeType.Shape, true)[0];


Hope, this helps.

1 Like