itext variable issue
<p>I am trying to show a variable value from class 'dbproperties' in the pdf document. Following code illustrates it,</p>

<pre><code>dbproperties db = new dbproperties();

Chunk text1 = new Chunk(db.index_number);
Paragraph p = new Paragraph();
p.add(text1);
document.close();
</code></pre>

<p>but getting an error </p>

<blockquote>
  <p>non-static variable cannot be referenced from a static content" for "Chunk text1 = new Chunk(db.index_number);</p>
</blockquote>

<p>Can anyone help me with this please??</p>
