• 请不要在回答技术问题时复制粘贴 AI 生成的内容
puduhe1
V2EX  ›  程序员

PDF 查看是正常中文,复制或转 html 出来内容就是乱码,有办法将之转成正常的中文字符吗?

  •  
  •   puduhe1 · Apr 8, 2021 · 1251 views
    This topic created in 1931 days ago, the information mentioned may be changed or developed.
    原因在于 PDF 内存储的是特殊字体

    字体文件在这儿:
    https://github.com/kefengzhang/alibaba_copy/blob/master/0.ttf

    在打开 PDF 看到是:账号 这两个字,选中复制出来是:衠뚽

    然后我用 wps 打开,他提供了一个功能 pdf 转 excel,或以转出正常的中文字符



    除了 OCR 视别,还有别的方式转换吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 09:58 · PVG 17:58 · LAX 02:58 · JFK 05:58
    ♥ Do have faith in what you're doing.