On 12/19/2024 8:37 PM, Denis Bitouzé wrote:
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:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
Foo.
\end{document}
--8<---------------cut here---------------end--------------->8---

2. Run then the following command:

--8<---------------cut here---------------start------------->8---
gs -V -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr 
"-sOutputFile=test.pdf.pdf" test.pdf
--8<---------------cut here---------------end--------------->8---

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.htmlhttps://bugs.ghostscript.com/show_bug.cgi?id=708201
   └────

It's a GS issue ... it can't handle an in itself valid

0 beginbfrange
endbfrange

because after all zero means zero entries. I have a patch for that but delay discussing it with luigi after the x-mas etc days as there is little hurry with this one.

Hans








-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to