title: Unable to use setSpacingAfter() and setSpacingBefore in iText java
body: <p>I've been developing a java swing GUI app that takes the input from user and write it on a pdf file.<br> I am using iText library in my project.<br>
  I was in need to change the default spacing between two paragraph. So I wrote :-</p>
  
  <pre><code>paragraph.setSpacingAfter(floatValue);
  </code></pre>
  
  <p><br>
  But I was unable to do so as eclipse didn't gave a suggestion for method and further more gave an error :-<hr>
  <a href="https://i.stack.imgur.com/Rc0ZF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rc0ZF.png" alt="Error Image"></a></p>
  
  <p><hr>
  Here cls is an object of Paragraph class.<br>
  I don't know where I am doing wrong. I tried both the of importing dependency jars i.e. adding external jars and converting my project to maven.<br>
  Please help me this is an important project.</p>
  
  <p>Thanks in advance. </p>
  
  <p><strong>Update :-</strong>
  <br></p>
  
  <p>Build Files :-
  <hr>
  <a href="https://i.stack.imgur.com/pY0Iu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pY0Iu.png" alt="enter image description here"></a></p>