Skip to content

cfFilterBannerToPDF() output is truncated (missing xref and %%EOF) when run inside cfFilterChain() — breaks CUPS test page printing #212

Description

@RiderALT

Printing the CUPS test page (application/vnd.cups-pdf-banner) through the universal filter fails:

E [Job 1] cfFilterChain: pdftopdf (PID 4813) stopped with status 1
E [Job 1] PID 4810 (/usr/lib/cups/filter/universal) stopped with status 1.

The PDF produced by cfFilterBannerToPDF() is truncated at a 4096-byte boundary and lacks the xref table and the %%EOF marker, so the next filter in the chain (cfFilterPDFToPDF, backed by PDFio) cannot open it and exits with status 1.

Affected: 2.2.0, 2.2.1 and current master (the PDFio-based bannertopdf rewrite). PR #154 ("Fix for issue of incomplete bannertopdf") did not fully fix this. Originally reported downstream at ALT Linux: https://bugzilla.altlinux.org/60277

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions