Hello Team,
Can you providing us a script or API in PHP that will read the text of a specific area of a pdf or a image means most highlighted text from a pdf or image.
If yes then what will be the costing.
I m sending example image.
Thank you
Customer
--------------------------------------
Hope you are doing well.
I am looking for a service where:
1. Will send the scanned pdf via API call
2. Your API will extract data of specific area/location
3. Return the data to us via API
Talk to you soon.
Customer
--------------------------------------
VeryPDF OCR Cloud API has this function, please look at following web pages for more information,
VeryPDF OCR Cloud API is $19.95 / Month, you can subscribe it from following web page,
https://www.verypdf.com/online/cloud-api/try-and-buy.html
We have implemented "Extract text from image rectangles" function some months ago, we have added a "rectangle" parameter to OCR characters in a rectangle on image, you can use it like below,
the meaning of “200×1674+822+379” is,
200 is width,
1674 is height,
822 is left position,
379 is top position,
You should better use urlencode() function to encodes string when you call this URL from PHP code, e.g.,
<?php
function get_data($url)
{
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$strURL = 'http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXX&app=ocr&infile=';
$strURL .= 'https://dl.dropboxusercontent.com/u/5570462/49AD37032CCC2C0_newfilename10.tif';
$strURL .= '&format=1&dumpwordpos=1&lang=swe';
$strURL .= '&rectangle=' . urlencode('200x1674+822+379');
$returned_content = get_data($strURL);
echo $returned_content;
?>
You can use "rectangle" option to get characters from a special rectangle on image file easily.
VeryPDF