Skip to content

Commit

Permalink
fix local write pdf file name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
myhloli committed Jun 18, 2024
1 parent 3b7342b commit 5f313bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magic_pdf/cli/magicpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _do_parse(pdf_file_name, pdf_bytes, model_list, parse_method, image_writer,
'''写源pdf'''
md_writer.write(
content=pdf_bytes,
path=f"{pdf_file_name}_origin.json",
path=f"{pdf_file_name}_origin.pdf",
mode=AbsReaderWriter.MODE_BIN,
)
content_list = pipe.pipe_mk_uni_format(image_dir, drop_mode=DropMode.NONE)
Expand Down

0 comments on commit 5f313bd

Please sign in to comment.