How to use the ABCPdf.NET to extract texts from all pages of a PDF file?
问题 How to use the ABCPdf.NET tool to extract the content texts from a PDF file? I tried the GetText method but doesn't extract the contents: var doc = new Doc(); var url = @".../FileName.pdf"; doc.Read(url); string xmlContents = doc.GetText("Text"); Response.Write(xmlContents); doc.Clear(); doc.Dispose(); My pdf has almost 1000 words but the GetText only returns 4-5 words. I realized it returns only the texts of the first page. So the question should be "how to extract the text from all pages of