pdf2word-pro 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ """pdf2word-pro —— 把 PDF 转成 Word(.docx),尽量保留原版面。
2
+
3
+ 对外只暴露三样东西:
4
+
5
+ from pdf2word_pro import Config, pdf_to_docx, __version__
6
+
7
+ 底层实现位于 :mod:`pdf2word_pro.core`(由原单文件 `pdf2docx.py` 迁移而来)。
8
+ """
9
+
10
+ from ._version import __version__
11
+ from .core import Config, pdf_to_docx
12
+
13
+ __all__ = ["Config", "pdf_to_docx", "__version__"]
@@ -0,0 +1,8 @@
1
+ """支持 python -m pdf2word_pro。"""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
pdf2word_pro/cli.py ADDED
@@ -0,0 +1,14 @@
1
+ """命令行入口:pdf2word-pro <pdf> [-o out.docx] [选项]"""
2
+
3
+ import sys
4
+
5
+ from .core import main as _convert_main
6
+
7
+
8
+ def main(argv=None) -> int:
9
+ """console_scripts 入口,返回进程退出码。"""
10
+ return _convert_main(argv)
11
+
12
+
13
+ if __name__ == "__main__":
14
+ sys.exit(main())