Dung Diego

up

......@@ -21,7 +21,8 @@ public function preview_pdf(Request $request){
}
public function import_pdf(Request $request){
try {
[$image_path,$js_path] = $this->ocr_process($request);
if($request->is_test) [$image_path,$js_path] = [$request->image_path,$request->js_path];
else [$image_path,$js_path] = $this->ocr_process($request);
$json_data = json_decode(file_get_contents($js_path), true);
$ocr=[];
$ocr['json_data']=$json_data;
......