Click here to Skip to main content
15,921,989 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
C#
How to extract part of the text from PDF using Itextsharp?

I am able to extract the entire text from PDF using ItextSharp dll.
C#
string text = string.Empty;


for (int page = 1; page <= 3; page++)
{

text += PdfTextExtractor.GetTextFromPage(pdfReader, page, new LocationTextExtractionStrategy()) + " ";

}


I want to extract the Declaration section and Disclaimer section in my PDF. I don't want to extract the entire text.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900