On 1/22/2026 6:51 PM, Ulrike Fischer wrote:
If I embed a stream object into a PDF but then no page is output
then luatex gives a fatal error while pdftex gives only a warning
about the dangling object:

\ifcsname directlua\endcsname
  \immediate\pdfextension obj stream attr {} {blub}
\else
  \immediate\pdfobj stream attr {} {blub}
\fi
\bye


luatex:

This is LuaTeX, Version 1.22.0 (TeX Live 2025)
  restricted system commands enabled.
(./test-utf8.tex)
warning  (pdf backend): no pages of output.
! error:  (pdf backend): already written content discarded, no
output file produced.
!  ==> Fatal error occurred, no output PDF file produced!

pdftex:

No pages of output.

pdfTeX warning: pdftex.exe: dangling objects discarded, no output
file produced.

Is there a reason for the difference and the fatal error here?

Well, it *is* an error. So maybe pdftex should also error on it.

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