几个月前,我通过 MikTeX 更新了 TeXworks,现在每次尝试使用时都会收到以下警告消息epstopdf
:“PDF 包含:发现 PDF 版本 <1.7>,但最多允许版本 <1.5>”
更新之前我没有遇到任何问题。以下是 MWE:
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\begin{figure}
\includegraphics[width=5in]{Phaselock.eps}
\end{figure}
\end{document}
eps 文件可以在这里找到:https://drive.google.com/file/d/1Gx5khDOo4Vovz0Z8TFV6CpNpQF3fuk20/view?usp=sharing
我已经尝试\pdfminorversion=7
在文档类行之前、文档类行之后和之前使用\begin{document}
。在这种情况下,我不再收到有关 PDF 版本的消息,但创建的 eps 图形的 PDF 文件不是它应该的样子(字体是块状的,图形轴上的刻度与轴重叠。)我在运行上述代码后粘贴了日志文件的内容和 \pdfminorversion=7
紧接着\begin{document}
。我没有主意了,并且尝试了其他帖子中建议的几行代码,例如:
\epstopdfDeclareGraphicsRule{.eps}{pdf}{.pdf}{%
epstopdf --gsopt=-dCompatibilityLevel=1.5 #1 --outfile=\OutputFile}
任何帮助深表感谢!!
日志文件从这里开始:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7350 64-bit) (preloaded format=pdflatex 2020.3.24) 11 MAY 2020 17:24
entering extended mode
**./TestEpsToPDFMWE.tex
(TestEpsToPDFMWE.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\size12.clo"
File: size12.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
)
\c@part=\count167
\c@section=\count168
\c@subsection=\count169
\c@subsubsection=\count170
\c@paragraph=\count171
\c@subparagraph=\count172
\c@figure=\count173
\c@table=\count174
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen134
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx
.sty"
Package: graphicx 2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.s
ty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphics
.sty"
Package: graphics 2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty
"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\grap
hics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-def\pdft
ex.def"
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin@req@height=\dimen135
\Gin@req@width=\dimen136
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epst
opdf.sty"
Package: epstopdf 2020-01-24 v2.11 Conversion with epstopdf on the fly (HO)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/generic/infwarerr\infwa
rerr.sty"
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/grfext\grfext.sty
"
Package: grfext 2019/12/03 v1.3 Manage graphics extensions (HO)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/generic/kvdefinekeys\kv
definekeys.sty"
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
))
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/kvoptions\kvoptio
ns.sty"
Package: kvoptions 2019/11/29 v3.13 Key value format for package options (HO)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/generic/ltxcmds\ltxcmds
.sty"
Package: ltxcmds 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/generic/kvsetkeys\kvset
keys.sty"
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
))
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pdftexcmds\pdftex
cmds.sty"
Package: pdftexcmds 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/generic/iftex\iftex.sty
"
Package: iftex 2020/03/06 v1.0d TeX engine tests
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epst
opdf-base.sty"
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 504.
))
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/latex/l3backend\l3backe
nd-pdfmode.def"
File: l3backend-pdfmode.def 2020-03-12 L3 backend support: PDF mode
\l__kernel_color_stack_int=\count175
\l__pdf_internal_box=\box45
)
No file TestEpsToPDFMWE.aux.
\openout1 = `TestEpsToPDFMWE.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
("C:\Users\Kelsey\AppData\Local\Programs\MiKTeX 2.9\tex/context/base/mkii\supp-
pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count176
\scratchdimen=\dimen137
\scratchbox=\box46
\nofMPsegments=\count177
\nofMParguments=\count178
\everyMPshowfont=\toks16
\MPscratchCnt=\count179
\MPscratchDim=\dimen138
\MPnumerator=\count180
\makeMPintoPDFobject=\count181
\everyMPtoPDFconversion=\toks17
)
Package epstopdf Info: Source file: <Phaselock.eps>
(epstopdf) date: 2018-11-12 17:04:11
(epstopdf) size: 9144 bytes
(epstopdf) Output file: <Phaselock-eps-converted-to.pdf>
(epstopdf) Command: <epstopdf --outfile=Phaselock-eps-converted-to.
pdf Phaselock.eps>
(epstopdf) \includegraphics on input line 9.
runsystem(epstopdf --outfile=Phaselock-eps-converted-to.pdf Phaselock.eps)...ex
ecuted (allowed).
Package epstopdf Info: Result file: <Phaselock-eps-converted-to.pdf>
(epstopdf) date: 2020-05-11 17:24:29
(epstopdf) size: 6224 bytes.
<Phaselock-eps-converted-to.pdf, id=1, 523.9575pt x 414.54875pt>
File: Phaselock-eps-converted-to.pdf Graphic file (type pdf)
<use Phaselock-eps-converted-to.pdf>
Package pdftex.def Info: Phaselock-eps-converted-to.pdf used on input line 9.
(pdftex.def) Requested size: 361.34999pt x 285.89978pt.
[1{C:/Users/Kelsey/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map} <./Phase
lock-eps-converted-to.pdf>] (TestEpsToPDFMWE.aux) )
Here is how much of TeX's memory you used:
1613 strings out of 480934
26224 string characters out of 2899449
259040 words of memory out of 3000000
17497 multiletter control sequences out of 15000+200000
532636 words of font info for 25 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
30i,5n,27p,215b,213s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Users/Kelsey/AppData/Loc
al/Programs/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on TestEpsToPDFMWE.pdf (1 page, 12810 bytes).
PDF statistics:
16 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
6 words of extra memory for PDF output out of 10000 (max. 10000000)
答案1
事实证明,真正的问题是我没有helvetic
安装该软件包。\pdfminorversion=7
解决方案确实有效,现在 PDF 中的字体由于该helvetic
软件包而正确。感谢@UlrikeFischer 指出真正的问题并纠正我对问题根源的假设。