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