V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cmichael
V2EX  ›  macOS

为什么有的 PDF 复制粘贴出来会乱码? mac 和 ios 下

  •  
  •   cmichael · Apr 7, 2021 · 4127 views
    This topic created in 1848 days ago, the information mentioned may be changed or developed.

    我在 safari 或 chrome 导出 pdf,然后放到 liquidtext ( ipad )选择中文摘要出来时乱码,或在 mac 的 preview 里,复制粘贴乱码

    有的 pdf 好象没这个问题。

    用 acrobat 分析了字体,有问题的 pdf 是用 pingfangsc,但这个字体我看 mac 和 ipad 都是自带的 我也改过 safari 的 encoding,无论 UTF8 还是 GB18030 都没用

    有解决方案吗?

    6 replies    2021-04-11 23:16:32 +08:00
    dodolee
        1
    dodolee  
       Apr 7, 2021
    只能 OCR
    ho121
        3
    ho121  
       Apr 7, 2021 via Android
    可能本来就是乱码,然后用特殊的嵌入字体渲染
    oldjerry
        4
    oldjerry  
       Apr 8, 2021
    PDF 为了保持排版效果和尽量缩小文件尺寸,有时候字体是内嵌的,而且是用了那些字符嵌入哪些,相当于 PDF 文件里有个自建的字体,编码也是重新编的。英文还好字符少,一般都是对应的。这种情况下的中文很多都不能保留原字符编码了,拷贝出来就是乱码。
    Anshay
        5
    Anshay  
       Apr 8, 2021
    可以考虑截图后识别文字。
    cmichael
        6
    cmichael  
    OP
       Apr 11, 2021
    我说的前提是,我已经看过 pdf 内嵌字体了,里面是用了 pingfangSC,mac 和 ipad 都是自带的……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1153 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    ♥ Do have faith in what you're doing.