title: iText 7 java.lang.NoSuchMethodError
body: <p>I just started developing a new function to convert HTML page to PDF. I use iText 7. Followed the instruction <a href="http://developers.itextpdf.com/content/itext-7-examples/converting-html-pdf/pdfhtml-accessible-pdf-creation" rel="nofollow noreferrer">here</a>!. </p>
  
  <p>And now i get the error <code>Exception in thread "main" java.lang.NoSuchMethodError: com.itextpdf.layout.font.FontSet.getFonts()Ljava/util/Set;</code></p>
  
  <p>I have created pom.xml following the instruction <a href="http://developers.itextpdf.com/itext-7" rel="nofollow noreferrer">here</a>! but still received the same error. </p>
  
  <p>I use eclipse. I put the pom.xml in the WebContent folder and received the error. Same result when moved the pom.xml into the WEB-INF folder. </p>
  
  <p>Is the directory for the pom.xml wrong? </p>
  
  <p>I've gone through the question <a href="https://stackoverflow.com/questions/44791275/itext7-html-to-pdf-conversion-exception">here</a>! and also <a href="https://stackoverflow.com/questions/44628839/itext-7-html-to-pdf-conversion?rq=1">here</a>! but still doesn't work</p>
  
  <p>Please advice. </p>