I need to store name of candidate and his id in mysql table , I have extracted the text using pdfparser
<?php
// Include Composer autoloader if not already done.
include 'vendorautoload.php';
// Parse pdf file and build necessary objects.
$parser = new SmalotPdfParserParser();
$pdf = $parser->parseFile('C:DesktopDataApplicationForm.pdf');
$text = $pdf->getText();
echo $text;
?>
right now its just showing the extracted text ,now I need to extract name and id from the page(the page which appears when we run the above program) which is filled with extracted text ,on clicking view page source I found the id I need
appears on:-
tr 1115*15 td.line-number 31*15 and td.line-content:1084*15, line number value = 12
name exists on :-
tr 1115*15 td.line-number 31*15 and td.line-content:1084*15, line number value = 13
I am lost at this point as I don't know how to get this info .Please help me .
I have multiple pdf's and all info I need is at same place (by same place I mean on line number value =13,tr 1115*15 td.line-number 31*15 and td.line-content:1084*15, )I just want to find a way to solve this problem , help me .
if you have any doubts I will clarify , if the question seems unclear I will improve it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…