[luatex] lualatex pdf issue with cups printing
Matthias Bodenbinder
matthias at bodenbinder.de
Mon Sep 9 11:16:38 CEST 2024
Hello,
I have an issue when printing PDFs from lualatex. The printing with cups always stops with
error: "cfFilterPDFToPDF: load_file failed: temp file: unable to find trailer dictionary
while recovering damaged file". The same tex document compiled with pdflatex is sprinting
just fine.
It used to work fine, but over the last couple of weeks / month something must have
changed. I am printing rarely any documents. I dont know when it was the last time where
it worked.
It happens on three PCs. For me that looks like a systematic issue and not an individual
configuration error.
It happens even to very simple documents like this one:
\documentclass{article}
\begin{document}
test Dokument äöü ÄÖÜ ß
\end{document}
I have attached the two resulting PDF documents. Only the pdflatex version is printing
fine.
The cups error log says this:
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file: file is damaged
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file: can\'t find startxref
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file: Attempting to reconstruct cross-
reference table
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file (object 9 0, offset 542): EOF after
endobj
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file (object 9 0, offset 398): stream
dictionary lacks /Length key
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file (object 9 0, offset 487): attempting to
recover stream length
W [09/Sep/2024:11:15:24 +0200] [Job 372] temp file (object 9 0, offset 487): recovered
stream length: 17
E [09/Sep/2024:11:15:24 +0200] [Job 372] cfFilterPDFToPDF: load_file failed: temp file:
unable to find trailer dictionary while recovering damaged file
E [09/Sep/2024:11:15:24 +0200] [Job 372] cfFilterChain: pdftopdf (PID 120710) stopped with
status 1
E [09/Sep/2024:11:15:24 +0200] [Job 372] universal filter failed.
E [09/Sep/2024:11:15:24 +0200] [Job 372] Job stopped due to filter errors; please consult
the /var/log/cups/error_log file for details.
This is on Endeavouros PCs.
The OS is up-to-date and the TeX versions are:
texlive 2024.2-2
╰─# lualatex -v
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024/Arch Linux)
Development id: 7611
╰─# pdflatex -v
pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux)
kpathsea version 6.4.0
Any idea what is going on? Any suggestion what I could do to debug this further?
Thanks in advance,
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-klein-lualatex.pdf
Type: application/pdf
Size: 4373 bytes
Desc: not available
URL: <https://tug.org/pipermail/luatex/attachments/20240909/df972857/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-klein-pdflatex.pdf
Type: application/pdf
Size: 14389 bytes
Desc: not available
URL: <https://tug.org/pipermail/luatex/attachments/20240909/df972857/attachment-0003.pdf>
More information about the luatex
mailing list.