小编ten*_*use的帖子

使用未嵌入的 TrueType 字体 (cups / lpr) 打印 PDF

我有一个 PDF,其中使用了 TrueType 字体OCRB,但未嵌入该字体。

所以我尝试在我的系统上安装字体(顺便说一下是 SLES11 SP2),我做了以下事情:

  • 双击 gnome 桌面上的字体并单击安装
  • 复制到/user/home/username/.fonts文件夹中
  • 复制到 /usr/share/fonts
  • 用根: SuSEconfig --module fonts
  • fc-cache

当我尝试使用以下命令打印 .pdf 时:

lpr -PHL2400Ce -# 1 test.pdf
Run Code Online (Sandbox Code Playgroud)

.pdf 打印得很好,但OCRB字体不见了,取而代之的是标准字体。

但是,当我使用evince(gnome 文档查看器)打开 .pdf 时,我看到查看器中的OCRB字体(正确),当我打印它(使用同一台打印机)时,它在那里并且绝对正确。

我不明白这一点,因为我猜evincelpr以某种方式使用?任何想法我能做什么?(对我来说能够通过命令行打印 .pdf 非常重要,因为它将成为在后台运行的批处理作业的一部分)

我也尝试了一些这样的方法:

gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=output2.pdf -f test.pdf
Run Code Online (Sandbox Code Playgroud)

这给我带来了输出:

....
Can't find (or can't open) font file Arial-BoldMT. 
Didn't find this font …
Run Code Online (Sandbox Code Playgroud)

printing fonts cups pdf

5
推荐指数
1
解决办法
5607
查看次数

标签 统计

cups ×1

fonts ×1

pdf ×1

printing ×1