Some examples to use the Doc2X API.
English/简体中文
Please refer to the feishu for better reading experience.
Using requests to using API.
- Convert a PDF file to json
- Convert a PDF file to docx
pdfdeal is a wrapper package for the Doc2X API - Convert a PDF file to docx - Convert all PDF files in a folder to docx - Convert all PDF files in a folder to docx and markdown - Convert HTML tables in text to Markdown format, note that since Markdown tables do not support merged cells, data misalignment may occur when there are merged cells (especially vertically merged cells).
$ claude mcp add doc2x-doc \
-- python -m otcore.mcp_server <graph>