Enrico Forestieri wrote:
Using the pdflatex in teTeX 2.0 to compile the following:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{test.pdf}
\end{document}
where test.pdf is version 1.5, gives the following error:
Error: pdflatex (file test.pdf): pdf inclusion: found pdf version <1.5>, but at
most version <1.4> allowed
==> Fatal error occurred, the output PDF file is not finished!
In teTeX 1.0 you obtain the same error but with <1.4> replaced by <1.2>.
This means that when you include an eps file in LyX and do View->PDF (pdflatex)
it succeeds with teTeX 2.0 but fails with teTeX 1.0 if ps2pdf13 is used.
However, when I tried to convert test.pdf to version 1.2 (through
"pdftops -eps" and then "ps2pdf12") it seems that any bounding box
information is lost and you have to set it by hand.
I think that the casual user will not understand what is happening to his
eps figure when he uses View->PDF (pdflatex) if ps2pdf12 is used.
So, perhaps, support for teTeX 1.0 should be dropped anyway (at least as
regards pdf).
No, it means that the lib/configure script should test the system's abilities.
There's already code in the script to test whether ps2pdf13 exists. That
code should be extended to test whether the ps2pdf version that's used
actually works with pdflatex.
Something like:
=========================================================
cat << EOF > testdoc.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{test.pdf}
\end{document}
EOF
success = 0
for converter in ps2pdf14 ps2pdf13 ps2pdf12
do
rm -f test.pdf
$converter test.eps test.pdf || continue
pdflatex testdoc.tex && {
success = 1
break
}
done
rm -f test.pdf testdoc.tex
test $success -eq 1 && ps_to_pdf_command=$converter
=========================================================
--
Angus