[luatex] lualatex pdf issue with cups printing

Matthias Bodenbinder matthias at bodenbinder.de
Mon Sep 9 22:33:42 CEST 2024


Am Montag, dem 09.09.2024 um 20:39 +0100 schrieb Ken Moffat via luatex:
> 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!
> 
> 

This is it. Thank you! 

Downgrading cairo solves the issue. And I found an open issue for cairo for exactly this
problem. It was opened just 3 hours ago.

https://gitlab.archlinux.org/archlinux/packaging/packages/cairo/-/issues/2

Matthias



More information about the luatex mailing list.