Hi....
I have a problem to store data in database from pdf file.
actually i have images of questions and their 4 optional answers. i want to read questions and answers seperatly from the image in pdf file and then i wnt to store in database.
i want to do that...i read first question and then i read all 4 options of first question's answer. then i read second question and then i read all 4 options of second question's answer.
i want to follow this process for all questions.
Remember my questions and their answers are as an image in pdf file.....
Plz Help MEEEEEE
i m waiting for ur response.
Thank You Very much
Loading
Jaganathan BantheswaranPosted Feb 26, 2011, 4:33 AM
For reading PDF files its better to use PDFBox .Net version [ as it is Open Source ]
Its open source. you can download from http://www.ikvm.net/download.html
After getting downloaded just include the dlls provided.
Use the code as like give below to read the pdf file.
private static string parseUsingPDFBox(string inputFile)
{
PDDocument doc = PDDocument.load(inputFile);
PDFTextStripper stripper = new PDFTextStripper();
return stripper.getText(doc);
}
Suthish NairPosted Feb 27, 2011, 1:05 PM
Surendra singhPosted Feb 26, 2011, 8:18 AM
Jaganathan BantheswaranPosted Feb 26, 2011, 8:10 AM
Instead of storing the text, can store the images from PDF?
Surendra singhPosted Feb 26, 2011, 7:47 AM
Thank you sir
Jaganathan BantheswaranPosted Feb 26, 2011, 7:30 AM
As the questions and answers are in image in pdf, its long process to read the pdf as text.
I guess its possible. First we have to convert the pdf to word , from word we have to take images and convert it again to text.
Surendra singhPosted Feb 26, 2011, 7:21 AM
I realy thankful to u.
plz try to help me again..