推荐学习书目
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
LeeReamond
V2EX  ›  Python

有什么办法能在本地快速地把 pdf 分享到 web 服务中吗?

  •  
  •   LeeReamond · Aug 20, 2021 · 2836 views
    This topic created in 1733 days ago, the information mentioned may be changed or developed.

    如题,需要阅读大量学术文献的时候,大部分是 pdf 格式的。

    但是由于 chrome 默认打开 pdf 时不加载 js,导致自带的谷歌翻译,还有插件的划词工具都没法用,严重拖慢阅读速度。

    有什么办法可以快速地把 pdf 放到网页上,然后让划词功能可以用吗?

    16 replies    2021-08-20 18:30:28 +08:00
    irainsoft
        1
    irainsoft  
       Aug 20, 2021   ❤️ 2
    512357301
        2
    512357301  
       Aug 20, 2021 via Android
    everything 可以开启 http,应该能解决你的问题
    keepeye
        3
    keepeye  
       Aug 20, 2021
    放到网页很简单,用 python 启动一个本地的 http.server 就行,但是我试了一下 edge 浏览 pdf,选中单词根本不触发划词翻译,而是显示一个 pdf 操作菜单
    Latin
        4
    Latin  
       Aug 20, 2021
    pip install updog
    cd folder/pdf
    updog
    Vegetable
        5
    Vegetable  
       Aug 20, 2021
    python -m http.server
    配合 saladict
    XTTX
        6
    XTTX  
       Aug 20, 2021
    XTTX
        7
    XTTX  
       Aug 20, 2021
    直接找个能用 chrome 插件的在线 pdf reader 就好了。
    lichdkimba
        8
    lichdkimba  
       Aug 20, 2021
    设置-扩展程序-划词翻译-详情-允许访问文件网址
    HelloWorld556
        9
    HelloWorld556  
       Aug 20, 2021
    node hs
    RRRoger
        10
    RRRoger  
       Aug 20, 2021
    用 `jupyter-notebook` 也可以啊
    Coolsummer
        11
    Coolsummer  
       Aug 20, 2021
    沙拉查词插件可以。右键点击沙拉查词插件图标,点击“在 PDF 阅读器中打开”,然后打开本地 PDF 文件即可。
    ciaoly
        12
    ciaoly  
       Aug 20, 2021 via Android
    hfs
    wolfie
        13
    wolfie  
       Aug 20, 2021
    Juszoe
        14
    Juszoe  
       Aug 20, 2021
    沙拉查词+1
    misaka19000
        15
    misaka19000  
       Aug 20, 2021
    学好英语,不再用翻译软件
    LeeReamond
        16
    LeeReamond  
    OP
       Aug 20, 2021
    @misaka19000 这是正确的废话,英语学三十年,看的也没中文快
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 95ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    ♥ Do have faith in what you're doing.