Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project/pdf2markdown/scripts/pdf2markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def process(self, input_path, save_dir=None, visualize=False, merge2markdown=Fal
for extract_res in pdf_extract_res:
md_text = self.convert2md(extract_res)
md_content.append(md_text)
with open(os.path.join(save_dir, f"{basename}.md"), "w") as f:
with open(os.path.join(save_dir, f"{basename}.md"), "w", encoding="utf-8") as f:
f.write("\n\n".join(md_content))

if visualize:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"pyyaml",
"frontend",
"pymupdf",
opencv-python = "^4.6.0"
"opencv-python>=4.6.0",
# Add other common dependencies
]

Expand Down