如何修复使用 ghostcript 减小 pdf 文件大小时忽略的错误“gs”?

如何修复使用 ghostcript 减小 pdf 文件大小时忽略的错误“gs”?

我正在尝试使用 ghostscript 减小 pdf 的文件大小。我在这里找到了命令:https://tex.stackexchange.com/questions/18987/how-to-make-the-pdfs-produced-by-pdflatex-smaller

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=foo-compressed.pdf input_file_name.pdf
   **** Error 'gs' ignored -- ExtGState missing from Resources.
        Output may be incorrect.

我也执行了不带 -dQUIIET 和 -dNOPAUSE 的命令,但这并不能澄清问题:

GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 72.
Page 1
   **** Error 'gs' ignored -- ExtGState missing from Resources.
        Output may be incorrect.
>>showpage, press <return> to continue<<

我不知道 ExtGState 是什么意思,因此我不知道需要采取什么进一步的步骤来解决这个问题。

编辑1

该命令确实输出了一个较小的 PDF 文件。所以它似乎有效。我只是不确定这个错误意味着什么,是否需要修复以及如何修复。

添加并-dPDFSETTINGS=/prepress不能消除错误。

字体

pdffonts original.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
RLEATT+Aniron-Bold                   CID TrueType      Identity-H       yes yes yes     11  0
JETQLW+CrimsonPro-Regular            CID TrueType      Identity-H       yes yes yes     13  0
CZPFND+CormorantSC-Bold-Identity-H   CID Type 0C       Identity-H       yes yes yes     19  0
APXFPL+CrimsonPro-Italic             CID TrueType      Identity-H       yes yes yes     74  0
VTLLQQ+CrimsonPro-Bold               CID TrueType      Identity-H       yes yes yes    148  0
BCDEEE+Calibri                       TrueType          WinAnsi          yes yes no     770  0
BCDFEE+MS-PGothic                    TrueType          WinAnsi          yes yes no     774  0
BCDGEE+Wingdings-Regular             CID TrueType      Identity-H       yes yes yes    778  0
BCDHEE+Calibri-Bold                  TrueType          WinAnsi          yes yes no    2816  0
CXSUEN+LMMono10-Regular-Identity-H   CID Type 0C       Identity-H       yes yes yes   2888  0
BCDEEE+MinionPro-Regular             TrueType          WinAnsi          yes yes no    2899  0
BCDFEE+Aniron-Bold                   TrueType          WinAnsi          yes yes no    2904  0
BCDGEE+TimesNewRomanPS-BoldMT        TrueType          WinAnsi          yes yes no    2909  0
BCDHEE+MinionPro-Bold                TrueType          WinAnsi          yes yes no    2915  0
BCDIEE+MinionPro-Regular             CID TrueType      Identity-H       yes yes yes   2922  0
BCDJEE+TimesNewRomanPSMT             TrueType          WinAnsi          yes yes no    2929  0
BCDKEE+SymbolMT                      CID TrueType      Identity-H       yes yes yes   2937  0
BCDLEE+ArialMT                       TrueType          WinAnsi          yes yes no    2946  0
BCDMEE+Aniron                        TrueType          WinAnsi          yes yes no    2955  0
BCDNEE+MinionPro-Bold                CID TrueType      Identity-H       yes yes yes   2968  0
BCDOEE+MinionPro-BoldIt              TrueType          WinAnsi          yes yes no    2978  0
BCDPEE+MinionPro-It                  TrueType          WinAnsi          yes yes no    2983  0
BCEAEE+TimesNewRomanPS-ItalicMT      TrueType          WinAnsi          yes yes no    3051  0
AJWSEY+CrimsonPro-BoldItalic         CID TrueType      Identity-H       yes yes yes   3195  0

相关内容