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
c2e54172
Commit
c2e54172
authored
Dec 16, 2024
by
zhougaofeng
Browse files
Update common.py
parent
bd375291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
magic_pdf/tools/common.py
magic_pdf/tools/common.py
+4
-0
No files found.
magic_pdf/tools/common.py
View file @
c2e54172
...
@@ -128,6 +128,10 @@ def do_parse(
...
@@ -128,6 +128,10 @@ def do_parse(
path
=
txt_file
,
path
=
txt_file
,
mode
=
AbsReaderWriter
.
MODE_TXT
,
mode
=
AbsReaderWriter
.
MODE_TXT
,
)
)
md_writer
.
write
(
f
'
{
pdf_file_name
}
.md'
,
md_content
)
filepath
=
os
.
path
.
join
(
str
(
local_md_dir
),
f
'
{
pdf_file_name
}
.txt'
)
filepath
=
os
.
path
.
join
(
str
(
local_md_dir
),
f
'
{
pdf_file_name
}
.txt'
)
# logger.info(f'txt文件保存在filepath:{filepath}')
# logger.info(f'txt文件保存在filepath:{filepath}')
remove_empty_lines_from_file
(
filepath
)
remove_empty_lines_from_file
(
filepath
)
...
...
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