Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
magic_pdf
Commits
69edbd64
Commit
69edbd64
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update common.py
parent
6db208d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
magic_pdf/tools/common.py
magic_pdf/tools/common.py
+2
-1
No files found.
magic_pdf/tools/common.py
View file @
69edbd64
...
@@ -40,6 +40,7 @@ def remove_empty_lines_from_file(file_path):
...
@@ -40,6 +40,7 @@ def remove_empty_lines_from_file(file_path):
file
.
writelines
(
non_empty_lines
)
file
.
writelines
(
non_empty_lines
)
def
do_parse
(
def
do_parse
(
ocr_status
,
config_path
,
config_path
,
output_dir
,
output_dir
,
pdf_file_name
,
pdf_file_name
,
...
@@ -102,7 +103,7 @@ def do_parse(
...
@@ -102,7 +103,7 @@ def do_parse(
pdf_info
=
pipe
.
pdf_mid_data
[
'pdf_info'
]
pdf_info
=
pipe
.
pdf_mid_data
[
'pdf_info'
]
if
f_draw_layout_bbox
:
if
f_draw_layout_bbox
:
draw_layout_bbox
(
pdf_info
,
pdf_bytes
,
local_md_dir
,
pdf_file_name
)
draw_layout_bbox
(
pdf_info
,
pdf_bytes
,
local_md_dir
,
pdf_file_name
)
md_content
=
pipe
.
pipe_mk_markdown
(
config_path
,
local_image_dir
,
md_content
=
pipe
.
pipe_mk_markdown
(
ocr_status
,
config_path
,
local_image_dir
,
drop_mode
=
DropMode
.
NONE
,
drop_mode
=
DropMode
.
NONE
,
md_make_mode
=
f_make_md_mode
)
md_make_mode
=
f_make_md_mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment