[luatex] lualatex pdf issue with cups printing
Ken Moffat
zarniwhoop at ntlworld.com
Mon Sep 9 21:39:04 CEST 2024
On Mon, Sep 09, 2024 at 11:16:38AM +0200, Matthias Bodenbinder wrote:
> 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.
Looking at Arch, at a guess, either a general upgrade of cups2 and
its packages in June, or else an upgrade of cups-filters in August.
But, I don't have a working printer so I cannot rule out that it
might be in lualatex - I see Arch last upgraded that in May. Of
ocurse, it depends when printing last worked for you, and also how
up to date your system (or Endeavour OS) was at that time.
I was going to suggest turning on debug logging in cups, but I tried
searching for the error message and found a report from today for
Arch:
https://bbs.archlinux.org/viewtopic.php?id=299255
- fix for that is to downgrade cairo!
>
> 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
>
ĸen
--
YOU ARE IN A MAZE OF LITTLE TWISTING PATCH CABLES, ALL ALIKE.
More information about the luatex
mailing list.