简体   繁体   English

我需要安装字体来转换pdf中的文本吗?

[英]Do I need to install fonts to convert text in my pdfs?

I'm playing around with some pdf's and there are some that don't have the text in the resulting images. 我在玩一些pdf文件,有些在结果图像中没有文字。

Two of these documents: 其中两个文件:

http://comptroller.nyc.gov/wp-content/uploads/documents/CAFR2013.pdf http://www.sfcontroller.org/modules/showdocument.aspx?documentid=4935 http://comptroller.nyc.gov/wp-content/uploads/documents/CAFR2013.pdf http://www.sfcontroller.org/modules/showdocument.aspx?documentid=4935

I've done a little googling and it seems like I might need to get some support for new fonts. 我做了一些谷歌搜索,看来我可能需要获得对新字体的一些支持。 Here's the blog post that makes me thing that: 这是使我变得如此的博客文章:

http://tech.superhappykittymeow.com/?p=254 http://tech.superhappykittymeow.com/?p=254

How do I go about getting the fonts I need and installing them on Windows 8? 如何获得所需的字体并将其安装在Windows 8上?

OK that post about missing fonts refers to a very old fork of Ghostscript, you most certainly won't get an error with the current canonical version (the ESP fork was merged back to the trunk many years ago and no longer exists). 好的,关于字体丢失的文章是指非常老的Ghostscript分支,您肯定会在当前规范版本中不会出错(ESP分支在很多年前已合并回主干,并且不再存在)。 You might get the wrong font, which can lead to text being garbled, but that's it. 您可能会得到错误的字体,这可能导致文本出现乱码,仅此而已。

The first URL you posted seems to be an HTML page, and the second one is incomplete so I get a 404 page. 您发布的第一个URL似乎是HTML页面,第二个URL不完整,所以我得到了404页面。

If you want fonts to work with Ghostscript then you need to install them on Ghostscript , not Windows. 如果要字体与Ghostscript一起使用,则需要在Ghostscript而不是Windows上安装它们。 Its true that when you install Ghostscript on Windows it will offer to add your current Windows fonts to the ones Ghostscript knows about, and adding new fonts to the same folder will (usually, but I haven't tried this on Windows 8) allow Ghostscript to see them too. 的确,当您在Windows上安装Ghostscript时,它将提供将当前Windows字体添加到Ghostscript知道的字体中,并将​​新字体添加到同一文件夹中(通常,但是我在Windows 8上没有尝试过)允许Ghostscript去看他们 But you can add them to GS without adding them to Windows and vice-versa. 但是您可以将它们添加到GS,而无需将它们添加到Windows,反之亦然。

You can also define a substitute font. 您还可以定义替代字体。 Say you need a font called MyFont-Itaiic and you don't have it, but you do have YourFont-Italic, and you happen to know that they are the same except for minor flourishes. 假设您需要一种名为MyFont-Itaiic的字体,而您没有,但是您的确具有YourFont-Italic,并且您会偶然发现它们是相同的,只是略有不同。 You could define YourFont-Italic as a substitute for MyFont-Italic. 您可以将YourFont-Italic定义为MyFont-Italic的替代品。

As for obtaining the fonts, you can either rummage around the web to see if the font or a clone is freely available, or you can buy them from font foundries. 至于获取字体,您可以在网上浏览以查看字体或克隆是否免费提供,也可以从字体代工厂购买。

The fonts reported "not embedded" in documentid=4935 are Arial, Helvetica, Times, and Times New Roman (in several styles each). documentid=4935中报告为“未嵌入”的字体是Arial,Helvetica,Times和Times New Roman(每种都有几种样式)。 Those can safely be replaced with the standard fonts on your system: Arial and Times New Roman if on MS Windows, Helvetica and Times if on Mac OS X. 可以安全地用系统上的标准字体替换这些字体:如果是MS Windows,则为Arial和Times New Roman;如果是Mac OS X,则为Helvetica和Times。

If you experienced this problem with one or more of the other fonts in the document (Helvetica Neue, Monotype Corsiva, Nyala), then the problem may be one of the programs in your workflow does not correctly recognize the embedded subsets of these fonts. 如果您使用文档中的其他一种或多种字体(Helvetica Neue,Monotype Corsiva,Nyala)遇到此问题,则该问题可能是您的工作流中的某个程序无法正确识别这些字体的嵌入子集。

Addition 加成

Checked the other document with Acrobat Pro: all of its fonts are embedded as a subset, so if your workflow is sound, you should not have seen any missing font at all. 使用Acrobat Pro检查了另一个文档:其所有字体都作为子集嵌入,因此,如果您的工作流程正常,则根本不会看到任何丢失的字体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM