Corrupted PDF with lualatex + gs 10.04.0
Denis Bitouzé
denis.bitouze at univ-littoral.fr
Mon Dec 23 23:00:11 CET 2024
Hi,
I sent the following message to the dev-luatex mailing list. I was
informed that it was on hold until the list moderator could review it
for approval. As nothing has happened for several days, I have posted it
here in the hope that someone here who is a member of this mailing list
can post it for me.
┌────
│ Hi,
│
│ I recently encountered an issue with LuaTeX (1.18.0) + Ghostscript
│ (10.04.0) and it turns out that the culprit seems to be LuaTeX :) This
│ may be summarized as follows:
│
│ 1. Compile with `lualatex` the following `test.tex` file:
│
│ \documentclass{article}
│ \begin{document}
│ Foo.
│ \end{document}
│
│
│ 2. Run then the following command:
│
│ gs -V -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=test.pdf.pdf" test.pdf
│
│ On GNU/Linux, this returns:
│
│ ┌────
│ │ GPL Ghostscript 10.04.0 (2024-09-18)
│ │ Copyright (C) 2024 Artifex Software, Inc. All rights reserved.
│ │ This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
│ │ see the file COPYING for details.
│ │ Processing pages 1 through 1.
│ │ Page 1
│ │
│ │ The following errors were encountered at least once while processing this file:
│ │ CMap unrecoverably broken
│ │
│ │ **** This file had errors that were repaired or ignored.
│ │ **** The file was produced by:
│ │ **** >>>> LuaTeX-1.18.0 <<<<
│ │ **** Please notify the author of the software that produced this
│ │ **** file that it does not conform to Adobe's published PDF
│ │ **** specification.
│ └────
│
│ You can find more details on how I came to LuaTeX in the TeX Live
│ mailing list archive and on the Ghostcript's Bugzilla:
│
│ ┌────
│ │ https://tug.org/pipermail/tex-live/2024-December/050985.html
│ │ https://bugs.ghostscript.com/show_bug.cgi?id=708201
│ └────
│
│ Best regards.
└────
Best regards.
--
Denis
More information about the tex-live
mailing list.