Skip to content

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

io modules

liukaiwen664f9cd6ed48
diff --git a/magic_pdf/io/S3ReaderWriter.py b/magic_pdf/io/S3ReaderWriter.py
index 23cecc24..5f254c82 100644
--- a/magic_pdf/io/S3ReaderWriter.py
+++ b/magic_pdf/io/S3ReaderWriter.py
@@ -11,7 +11,7 @@ MODE_BIN = "binary"
class S3ReaderWriter(AbsReaderWriter):
- def __init__(self, ak: str, sk: str, endpoint_url: str, addressing_style: str, parent_path: str):
+ def __init__(self, ak: str, sk: str, endpoint_url: str, addressing_style: str = 'auto', parent_path: str = ''):
self.client = self._get_client(ak, sk, endpoint_url, addressing_style)
self.path = parent_path