title: Spacing and Margin settings in MS Word document using Apache POI docx
body: <p>I have two paragraphs and i want 100 pt space before each line. Is there a way we can do in <code>Apache POI</code>?   </p>
  
  <p>Here is the code snippet     </p>
  
  <pre><code>XWPFDocument doc = new XWPFDocument();
  XWPFParagraph documentTitle = doc.createParagraph();
  
  documentTitle.setAlignment(ParagraphAlignment.CENTER);
  XWPFRun run = documentTitle.createRun();
  
  run.setText("Paragraph 1");
  run.setBold(true);
  run.setFontFamily("Calibri");
  run.setFontSize(13);
  run.setColor("4F81BD");
  
  run.addBreak();
  
  run.setText("Paragraph 2");
  run.setBold(true);
  run.setFontFamily("Calibri");
  run.setFontSize(13);
  run.setColor("4F81BD");
  </code></pre>
  
  <p>Here how to add <code>100 pt</code> space between two paragraphs? Is there any way we can achieve this? 
  <code>addBreak()</code> is not keeping any space between two lines.</p>
  
  <p>And how to set margin spacing in docx?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks. </p>