Corrupted PDF with lualatex + gs 10.04.0

Zdenek Wagner zdenek.wagner at gmail.com
Wed Dec 18 16:21:16 CET 2024


st 18. 12. 2024 v 15:17 odesílatel Denis Bitouzé
<denis.bitouze at univ-littoral.fr> napsal:
>
> 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---
>
I have gs 10.02.1 and 10.03.1 on different Linux computers and both
work fine, thus it must be something wrong in gs. It mighr even be
Windows specific, it would be nice if somebody with 10.04.4 could try
it on another platform.

> (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?
>

Zdeněk Wagner
https://www.zdenek-wagner.eu/


> Best regards.
> --
> Denis
>



More information about the tex-live mailing list.