V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
967182
V2EX  ›  Python

word 转 pdf

  •  
  •   967182 · 2021-01-19 16:58:23 +08:00 · 2271 次点击
    这是一个创建于 1165 天前的主题,其中的信息可能已经有所发展或是发生改变。
    python 里有没有什么库 word 转 pdf,能达到 documents4j 一样的效果?
    7 条回复    2021-02-18 18:06:27 +08:00
    iewad
        1
    iewad  
       2021-01-19 17:09:44 +08:00
    unoconv
    omph
        2
    omph  
       2021-01-19 17:13:17 +08:00
    [使用 pypandoc 转换各类文档]( http://yuanjun.farbox.com/python/333)
    RedBeanIce
        3
    RedBeanIce  
       2021-01-19 19:22:40 +08:00
    libreoffice
    booscopy
        4
    booscopy  
       2021-01-19 23:25:56 +08:00
    pipx install docx2pdf
    ------------------------------------------
    from docx2pdf import convert

    convert("input.docx")
    convert("input.docx", "output.pdf")
    convert("my_docx_folder/")
    ------------------------------------------
    pypi.org/project/docx2pdf
    hellhyzcy66
        5
    hellhyzcy66  
       2021-01-21 20:24:46 +08:00 via iPhone
    装了 office 自带 pdf 打印机,或者自己装 pdf 打印机
    mn4940128
        6
    mn4940128  
       2021-01-28 09:44:16 +08:00
    同推荐 libreoffice 可以 headless,部署到云服务贼舒服
    ChangHaoWei
        7
    ChangHaoWei  
       2021-02-18 18:06:27 +08:00
    pdf 转 word 有没有这样的需求,想做个 APP
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2820 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:24 · PVG 21:24 · LAX 06:24 · JFK 09:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.