PdfReader reader = new PdfReader(@"C:\Users\Public\Documents\RMA.pdf"); int n = reader.NumberOfPages; Rectangle psize = reader.GetPageSize(1); float width = psize.Width; float height = psize.Height; Console.WriteLine("Size of page 1 of {0} => {1} × {2}", n, width, height); Dictionary<string, string> infodict = reader.Info; foreach (KeyValuePair<string, string> kvp in infodict) Console.WriteLine(kvp.Key + " => " + kvp.Value);
Hashtable
Dictionary
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)