static void Main(string[] args) { Pdfium pdf = new Pdfium(); TestParams param = LoadJson(); //string file = path + fileName; string file = param.pathToFile; Console.WriteLine("\nOpen PDF file: " + file); pdf.LoadFile(file); Console.WriteLine("\nNumber of Pages:" + pdf.PageCount().ToString()); var info = pdf.GetInformation(); Console.WriteLine("\nCreator: " + info.Creator); Console.WriteLine("\nTitle: " + info.Title); Console.WriteLine("\nAuthor: " + info.Author); Console.WriteLine("\nSubject: " + info.Subject); Console.WriteLine("\nKeywords: " + info.Keywords); Console.WriteLine("\nProducer: " + info.Producer); Console.WriteLine("\nCreationDate: " + info.CreationDate); Console.WriteLine("\nModDate: " + info.ModificationDate); }
public void SetupPDF() { pdf = new Pdfium(); TestParams filePath = LoadJson(); string file = filePath.pathToFile; Console.WriteLine("\nOpen PDF file: " + file); pdf.LoadFile(file); }