static void SaveTextToFile() { CSPdfExtractor extractor = new CSPdfExtractor(); extractor.LoadPdfFile("f://test3.pdf"); extractor.ConvertToTextFile("f://output.txt"); }
static void GetWholePageText() { CSPdfExtractor extractor = new CSPdfExtractor(); extractor.LoadPdfFile("f://test1.pdf"); string text = extractor.ConvertToText(); Console.WriteLine(text); Console.ReadKey(); }
static void GetEachPageText() { CSPdfExtractor extractor = new CSPdfExtractor(); extractor.LoadPdfFile("f://test1.pdf"); int count = extractor.FilePageCount; for (int i = 0; i < count; i++) { String text = extractor.ConvertToText(i); Console.WriteLine(text); } Console.ReadKey(); }