Comments (1)
debug_page
是开发阶段用来调试每一页的,如果要保存多页,可以使用make_docx()
方法:
pdf_file = os.path.join(output, f'{filename}.pdf')
docx_file = os.path.join(output, f'{filename}.docx')
cv = Converter(pdf_file)
cv.make_docx(docx_file, start=?, end=?) # 省略end参数则默认到最后一页
cv.close()
或者直接用封装好的parse
方法(参考README中的说明):
from pdf2docx import parse
pdf_file = '/path/to/sample.pdf'
docx_file = 'path/to/sample.docx'
# convert pdf to docx
parse(pdf_file, docx_file, start=0)
from pdf2docx.
Related Issues (20)
- limit of pages for conversion HOT 9
- WARNING:Ignore Line "some text" due to overlap HOT 2
- 去除页眉页脚的工作 HOT 4
- 所有文字丢失:Ignore Line xx due to overlap. HOT 8
- pdf中缩进较宽的编号列表被识别为表格 HOT 1
- Any pdf2pptx code? HOT 1
- Error encountered when using parse() function on PDF file HOT 6
- Missing separators when converting pdf to docx HOT 2
- 关于多栏布局/版面分析的一些探讨 HOT 3
- 转化之后word表格的列宽和pdf不一致 HOT 5
- pdf中的流程图转word的问题 HOT 6
- 作者你好,pdf转word后图片还是翻转状态 HOT 1
- 单元格内表格转换的文本错误
- 有计划支持 公式的转换吗 HOT 2
- Add more support for equations
- Table formatting
- 设置multi_processing=True,在Linux上会程序卡死 HOT 3
- Ignore charts and images during conversion
- 可不可以将pdf的字体自动添加到系统中以防止转换后乱码
- 这个项目最大的问题在于数据结构设计 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf2docx.