How to Extract Title from PDF?

Hello! We are currently retrieving a Binary response form a GET endpoint that we are consuming containing a PDF file. Is there a way for us to retrieve the title of the pdf that's displayed in Chrome (see below) when the file is opened locally?

I have looked at iTextSharp & PDFHelper forge components and neither of these components have the ability to read the title.

Hello Nick,

I believe this Title field is available in the PDF metadata - it's visible in the File->Properties window in Adobe Reader.

While I believe the iTextSharp/PDFHelper components don't have this feature implemented, the iTextSharp library can read the PDF metadata. You can implement this yourself by accessing the extension code of these components and using the getInfo() method.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.