Reputation: 11
I can get author using
PdfString Author = annot.GetAsString(PdfName.T);
Upvotes: 1
Views: 315
Reputation: 9816
Welcome to Stackoverflow. You can get the subject quite similar as the author:
PdfString subject = annot.GetAsString(PdfName.SUBJ);
If PdfName.SUBJ is not (yet) available use
PdfString subject = annot.GetAsString(new PdfName("Subj"));
Upvotes: 1