Extract comments of specific annotation of a PDF using iText
<p>using iText I am able to get a list of annotations of a PDF. It seems that even replies are annotations themselves.</p>

<p>Extracting them, I look at the contents of the PdfDictionary using this</p>

<pre><code>Set&lt;PdfName&gt; keys = annot.getKeys();
for (PdfName key : keys) {
    System.out.println(key + "," + dictionary.get(key));
}
</code></pre>

<p>However, I cannot pinpoint which PdfName I need to use in order to identify replies belong to that certain annotation.</p>