Forum Discussion
shankar_r
6 years agoCommunity Hero
You can extract data from the PDF file by following the steps in the below link
- Krishna_Kumar6 years agoContributor
I wanted to print the first 10 lines of the PDF document and hence i need to read data line by line.
in the above line i didn't find any references, can you please check and tell me
Regards,
Sathish KUmar
- shankar_r6 years agoCommunity Hero
// Set the start page (note that the page index is not zero-based) textStripperObj.setStartPage(1); // Set the end page textStripperObj.setEndPage(1); // Get the text of the specified pages text = textStripperObj.getText_2(docObj);
In the above code, you can get particular page text and see how are you getting data, based on this you will get some idea about how you can get the required data.
There is no prepaid solution for your question, This is just a way to get your analysis.
- m_essaid6 years agoValued Contributor
Hi,
In a first time I would extract all the PDF text into a textfile using PdfBoxDotNet.
Then, in a second time, I would browse the textfile and flush only the first ten lines into a second textfile.
Related Content
- 3 years ago
- 6 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago