根据 pdfTeX 手册(第 7 页),“更全面、更具描述性的测试是使用普通的 TeX 测试文件 samplepdf.tex,可在发行版的 samplepdftex/ 目录中找到。”我找到了它,将其复制到另一个目录,应用gunzip
并尝试了pdftex
。但是,出现了错误。以下是日志文件:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdftex 2020.7.13) 24 APR 2021 15:59
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**samplepdf
(./samplepdf.tex (/usr/share/texlive/texmf-dist/tex/generic/pdftex/pdfcolor.tex
){/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} [1] [2
Position: X=4736286sp, Y=28455731sp.
! pdfTeX error (ext5): cannot open file for embedding.
\plainoutput ...headline \pagebody \makefootline }
\advancepageno \ifnum \out...
<output> {\plainoutput
}
\break ->\penalty -\@M
l.481 \newpage
! ==> Fatal error occurred, no output PDF file produced!
哪里出了问题?(总体来说,pdftex
运行正常。)
答案1
我刚刚在 texlive 2021 中尝试过,运行没有错误。你复制了整个目录吗?
$ pdftex samplepdf
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdftex)
restricted \write18 enabled.
entering extended mode
(./samplepdf.tex (./pdfcolor.tex){/usr/local/texlive/2021/texmf-var/fonts/map/p
dftex/updmap/pdftex.map} [1] [2
Position: X=4736286sp, Y=28455731sp.
<<obj.dat>><<obj.dat>><<obj.dat>>] [3 <./pic.pdf> <./pic.pdf> <./pic.png> <./pi
c.pdf>]<<rgb.icc>> (./supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
) (./supp-pdf.tex
loading : Context Support Macros / PDF (2004.03.26)
) [4 <./pic16.png> <./pic.jpg> <./pic.jpg>] [MP to PDF] (./samplepdf.0)
[MP to PDF] (./samplepdf.1) [5] [6 <./tmp.pdf>] [7] [8] [9] [10] [11] )</usr/lo
cal/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmb10.pfb></usr/loca
l/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/local
/texlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/t
exlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/local/te
xlive/2021/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on samplepdf.pdf (11 pages, 933418 bytes).
Transcript written on samplepdf.log.