Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: update s3 offset

许瑞ab72dc265250
diff --git a/magic_pdf/cli/magicpdf.py b/magic_pdf/cli/magicpdf.py
index 51111432..fc3a5598 100644
--- a/magic_pdf/cli/magicpdf.py
+++ b/magic_pdf/cli/magicpdf.py
@@ -105,6 +105,7 @@ def json_command(json, method):
byte_start, byte_end = 0, None
else:
byte_start, byte_end = int(may_range_params[0]), int(may_range_params[1])
+ byte_end += byte_start - 1
return s3_rw.read_jsonl(
remove_non_official_s3_args(s3path), byte_start, byte_end, MODE_BIN
)