Continue to my previous question. Suppose I want to extract the “Narrative Summary” at the 2nd page of the attached pdf file. There are two paragraphs. How can I extract these text in two paragraphs?
I tried to use the following code snippets to extract text,
TextFragmentAbsorber tfa = new TextFragmentAbsorber();
TextFragmentCollection tfc = tfa.TextFragments;
foreach (TextFragment tf in tfc)
result += tf.Text + “\r\n”;
But the final strings are broken into 14 strings. Is there any better way for me to :
1. Get the content right after the title “Narrative Summary”, and before the ending of the page.
2. The content should be in two paragraphs.