Rohit Kumar
Rohit Kumar

Reputation: 11

How to get Subject of annotation in pdf using itextsharp c#

How to get subject enter image description here

I can get author using

PdfString Author = annot.GetAsString(PdfName.T);

Upvotes: 1

Views: 315

Answers (1)

Lonzak
Lonzak

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

Related Questions