I get the PDF metadatas using itextsharp as follows:
var pdf = new PdfReader(__PDF_PATH__);
var main = new[] { "Title", "Subject", "Creator", "Author", "Producer", "Keywords", "ModDate", "CreationDate" };
var metadatas = pdf.Info; // returns Dictionary<string, string> metadatas
The keys of the dictionary are as in the main array. I want to sort the dictionary's keys according to the given main array. But I did not manage.