Problems with automatic conversion from `.eps` to `.pdf` (pdf/lua)latex (windows)

Pablo González L pablgonz at educarchile.cl
Tue Mar 28 17:06:35 CEST 2023


Hello everyone, I have version 2023 of TeX Live installed under windows
11, updated to today. I have downloaded the `ctanlion.eps` file for the
example.

########################################################################
D:\example>curl -o ctanlion.eps https://www.ctan.org/lion/files/ctanlion.eps
D:\example>more example.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
% curl -o ctanlion.eps https://www.ctan.org/lion/files/ctanlion.eps
\includegraphics{ctanlion.eps}
\end{document}

D:\example>pdflatex example.tex
D:\example>pdflatex example.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023)
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2023/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file example.aux.
(c:/texlive/2023/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(c:/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))epstopdf
($Id: epstopdf.pl 66407 2023-03-06 23:44:49Z karl $) 2.31
!!! Error: Input filename 'ctanlion.eps' not allowed in restricted mode.
C:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 2:
perl.exe c:\texlive\2023\texmf-dist\scripts\epstopdf\epstopdf.pl
--restricted "--outfile=ctanlion-eps-converted-to.pdf" "ctanlion.eps"
system returned with code 2


! Package pdftex.def Error: File `ctanlion-eps-converted-to.pdf' not found: usi
ng draft setting.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.5 \includegraphics{ctanlion.eps}

?
[1{c:/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./example.aux) )<c:/texlive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmr
10.pfb><c:/texlive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on example.pdf (1 page, 20665 bytes).
Transcript written on example.log.
########################################################################

The `ctanlion.eps` file is in the working directory, but it is not
converted.

C:\Users\pablg>kpsewhich epstopdf.cfg

C:\Users\pablg>kpsewhich epstopdf-sys.cfg
c:/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg

By executing directly `epstopdf ctanlion.eps`, ctanlion.pdf is generated
but if i execute `epstopdf --restricted ctanlion.eps` I get:

D:\example>epstopdf --restricted ctanlion.eps
epstopdf ($Id: epstopdf.pl 66407 2023-03-06 23:44:49Z karl $) 2.31
!!! Error: Input filename 'ctanlion.eps' not allowed in restricted mode.
C:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 2:
perl.exe c:\texlive\2023\texmf-dist\scripts\epstopdf\epstopdf.pl
--restricted ctanlion.eps

This is the complete `.log` file:

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023)
(preloaded format=pdflatex 2023.3.9)  28 MAR 2023 12:02
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**example.tex
(./example.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c at part=\count185
\c at section=\count186
\c at subsection=\count187
\c at subsubsection=\count188
\c at paragraph=\count189
\c at subparagraph=\count190
\c at figure=\count191
\c at table=\count192
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)

(c:/texlive/2023/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV at toks@=\toks16
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR)

(c:/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 107.

(c:/texlive/2023/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2022/09/22 v1.2b Graphics/color driver for pdftex
))
\Gin at req@height=\dimen141
\Gin at req@width=\dimen142
)
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2023-01-16 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count193
\l__pdf_internal_box=\box51
)
No file example.aux.
\openout1 = `example.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
(c:/texlive/2023/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count194
\scratchdimen=\dimen143
\scratchbox=\box52
\nofMPsegments=\count195
\nofMParguments=\count196
\everyMPshowfont=\toks17
\MPscratchCnt=\count197
\MPscratchDim=\dimen144
\MPnumerator=\count198
\makeMPintoPDFobject=\count199
\everyMPtoPDFconversion=\toks18
) (c:/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-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.

(c:/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package epstopdf Info: Source file: <ctanlion.eps>
(epstopdf)                    date: 2023-03-28 11:53:10
(epstopdf)                    size: 264217 bytes
(epstopdf)             Output file: <ctanlion-eps-converted-to.pdf>
(epstopdf)             Command: <repstopdf --outfile=ctanlion-eps-converted-to.
pdf ctanlion.eps>
(epstopdf)             \includegraphics on input line 5.
runsystem(repstopdf --outfile=ctanlion-eps-converted-to.pdf ctanlion.eps)...exe
cuted safely (allowed).

Package epstopdf Info: Result file: <ctanlion-eps-converted-to.pdf>.


! Package pdftex.def Error: File `ctanlion-eps-converted-to.pdf' not found: usi
ng draft setting.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.5 \includegraphics{ctanlion.eps}

?
[1

{c:/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./example.aux) )
Here is how much of TeX's memory you used:
 1275 strings out of 476025
 21037 string characters out of 5794010
 1849382 words of memory out of 5000000
 21775 multiletter control sequences out of 15000+600000
 512455 words of font info for 33 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 57i,5n,62p,200b,129s stack positions out of 10000i,1000n,20000p,200000b,200000s
<c:/texlive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmr
10.pfb><c:/texlive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on example.pdf (1 page, 20665 bytes).
PDF statistics:
 18 PDF objects out of 1000 (max. 8388607)
 10 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)


More information about the tex-live mailing list.