Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dung Diego
2026-07-16 13:13:05 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
e21a73871574374be3067a754a64d6df38a88f2a
e21a7387
1 parent
fb100ea1
up
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
app/Http/Controllers/OcrController.php
resources/views/ocr/ocr_pdf.blade.php
app/Http/Controllers/OcrController.php
View file @
e21a738
...
...
@@ -27,6 +27,7 @@ public function import_pdf(Request $request){
$ocr
[
'json_data'
]
=
$json_data
;
$ocr
[
'js_path'
]
=
$js_path
;
$ocr
[
'image_path'
]
=
$image_path
;
$ocr
[
'mst_template'
]
=
[
'image'
=>
$json_data
[
'image'
]];
return
response
()
->
json
([
'status'
=>
true
,
'data'
=>
$ocr
,]);
}
catch
(
\Throwable
$e
){
report
(
$e
);
...
...
resources/views/ocr/ocr_pdf.blade.php
View file @
e21a738
...
...
@@ -7,8 +7,6 @@
<link
rel=
"stylesheet"
href=
"{{ asset('AdminLTE/plugins/summernote/summernote-bs4.min.css') }}"
>
<link
rel=
"stylesheet"
href=
"https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/jquery-datetime-picker@2.5.11/jquery.datetimepicker.min.css"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/app.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/select2_multiple.css') }}"
>
<style>
.ocr
{
...
...
Please
register
or
sign in
to post a comment