Fonts 重影脚本字体转换问题

Fonts 重影脚本字体转换问题,fonts,ghostscript,embedded-fonts,Fonts,Ghostscript,Embedded Fonts,全部, 我对pdf中的字体有问题。在原稿中,它显示一条实线,但如果我复制它,我会在剪贴板上看到这个 这对我来说是某种特殊的字体,这很好。问题是我使用这个pdf作为ghostscript的输入,行变成了一堆带有X的框。 经过一番搜寻,我发现了。-c命令成功地删除了框,但仍缺少行 在windows 7 64位系统上运行gswin64c.exe-dNOPAUSE-dBATCH-sDEVICE=pdfwrite-sOutputFile=output.pdf USA_15238-2897_585310

全部,

我对pdf中的字体有问题。在原稿中,它显示一条实线,但如果我复制它,我会在剪贴板上看到这个

这对我来说是某种特殊的字体,这很好。问题是我使用这个pdf作为ghostscript的输入,行变成了一堆带有X的框。

经过一番搜寻,我发现了。
-c
命令成功地删除了框,但仍缺少行

在windows 7 64位系统上运行
gswin64c.exe-dNOPAUSE-dBATCH-sDEVICE=pdfwrite-sOutputFile=output.pdf USA_15238-2897_5853101.pdf
,我得到以下输出:

GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 2.
Page 1
Substituting font Courier-Bold for CourierNew,Bold.
Loading NimbusMonL-Bold font from %rom%Resource/Font/NimbusMonL-Bold... 3825552 2503053 2085544
 779106 3 done.
Substituting font Courier for CourierNew.
Loading NimbusMonL-Regu font from %rom%Resource/Font/NimbusMonL-Regu... 3986304 2660967 2146096
 844377 3 done.
Can't find (or can't open) font file %rom%Resource/Font/ArialMT.
Can't find (or can't open) font file ArialMT.
Can't find (or can't open) font file %rom%Resource/Font/ArialMT.
Can't find (or can't open) font file ArialMT.
Querying operating system for font files...
Didn't find this font on the system!
Substituting font Helvetica for ArialMT.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 4100320 2785188 2226832
 918025 3 done.
Page 2
Substituting font Courier-Bold for CourierNew,Bold.
Substituting font Courier for CourierNew.
将windows fonts文件夹添加为fontpath开关允许查找字体,但不能解决“行到框”问题

运行
gswin64c.exe-dNOPAUSE-dBATCH-sDEVICE=pdfwrite-sOutputFile=output.pdf-c.setpdfwrite-setdiverterparams“-f USA_15238-2897_5853101.pdf
会产生以下结果:

GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 2.
Page 1
Substituting font Courier-Bold for CourierNew,Bold.
Loading NimbusMonL-Bold font from %rom%Resource/Font/NimbusMonL-Bold... 3825552 2503973 2105728
 793286 3 done.
Substituting font Courier for CourierNew.
Loading NimbusMonL-Regu font from %rom%Resource/Font/NimbusMonL-Regu... 3986304 2661903 2166280
 858469 3 done.
Can't find (or can't open) font file %rom%Resource/Font/ArialMT.
Can't find (or can't open) font file ArialMT.
Can't find (or can't open) font file %rom%Resource/Font/ArialMT.
Can't find (or can't open) font file ArialMT.
Querying operating system for font files...
Didn't find this font on the system!
Substituting font Helvetica for ArialMT.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 4100320 2786124 2247016
 932205 3 done.
Page 2
Substituting font Courier-Bold for CourierNew,Bold.
Substituting font Courier for CourierNew.
但这一行现在是pdf中的空格。如果我复制并粘贴它,我会得到
─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─


我需要添加什么样的ghostscript开关才能保持原始pdf中的行?

如果看不到您的pdf文件,就无法说出发生了什么。请注意,复制+粘贴永远不能保证有效,尤其是在通过Ghostscript转换为PDF后

既然你已经有了一个PDF文件,为什么要把它转换成PDF


最可能的问题是用Courier替换Courier New,但在看不到文件的情况下,我无法确定。

我正在使用Ghostscript来组合这些PDF。我不在乎复制和粘贴,我在乎外观。我刚才提到了复制,因为它似乎表明正在使用unicode字体来生成线条,而不是矢量图形。我不能提供原始pdf,因为它包含敏感数据。
Courier
Courier New
之间有什么区别?我将接受这个答案,因为这是
Courier
字体替换。感谢您为我指明了正确的方向。但修复courier字体替换的ghostscript中的开关是什么?几乎可以肯定没有开关,但为courier New添加字体声明将起作用,前提是courier New字体在必要的代码点具有正确的字形。请注意,只有在输入文件中没有字体时,Ghostscript才会替换字体,并且您还没有告诉它在哪里可以找到指定的替代字体。