How to get Language property of the PDF Document

Hello Team,
Hope you people are doing well.
We are using Aspose.pdf in our application.
I want to get the language property of the document. I have attached an image that will help you to understand well.
Please guide me how to get that property in Aspose.pdf.

image.png (17.1 KB)

Thanks
Vijay

@vijaychaya

We have logged a feature request to get the language of PDF document in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

@vijaychaya

The ticket ID for your issue is PDFNET-51853.

@vijaychaya

To achieve the requirement, please use the following code:

var doc = new Document(fileName);

var v = doc.GetCatalogValue("Lang");
if (v != null)
    lang = doc.GetCatalogValue("Lang").ToString();
else
    lang = string.Empty;