Corrupted PDF with lualatex + gs 10.04.0
Denis Bitouzé
denis.bitouze at univ-littoral.fr
Wed Dec 18 15:17:18 CET 2024
Hi,
(I'm not sure it is the right place for the current report. Sorry if
that's not the case and then please advise where to report.)
Consider the following simple `test.tex` source file:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
Foo.
\end{document}
--8<---------------cut here---------------end--------------->8---
Compiled with both (up to date) `pdflatex`, `xelatex` or `lualatex`, the
resulting `test.pdf` is okay. But, if it is compiled with `lualatex` (only) and
if the resulting PDF is subject to:
--8<---------------cut here---------------start------------->8---
gs -P- -dSAFER -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=test.pdf.pdf" -P- -dSAFER test.pdf
--8<---------------cut here---------------end--------------->8---
(coming from `ps2pdf` and subsequent scripts) then, with `gs` (version
10.04.0), the “Foo.” text in `test.pdf.pdf`, if copied and pasted,
returns:
6QQX
Quite strange, isn't it?
Best regards.
--
Denis
More information about the tex-live
mailing list.