title: How can I set the complete page background for a Word page with Apache POI?
body: <p>I have already searched all day today, but without success. First I created a new Word document and tried to set the background with</p>
  <pre><code> //Blank Document
      XWPFDocument doc = new XWPFDocument();
  
      //Write the Document in file system
      FileOutputStream out = new FileOutputStream(new File(&quot;test.docx&quot;));
  
      File backgroundImage = new File(&quot;img.png&quot;);
  
  doc.getDocument().addNewBackground().addNewDrawing().save(backgroundImage);
  </code></pre>
  <p><code>backgroundImage</code> is the picture I want to set.</p>