Skip to content

Unable to print multiple files to a local printer #643

Closed

Description

@Japhier

Describe the bug
i use command: lp -d printer 1.png 2.png;
but result is only printing 1.png and cups report error: print job canceled at printer(but i didn't cancel at printer)
i have test in HP printer and deli printer, see also as #5819

in code , i haved used cupsPrintFiles api, but have the same problem

cups version: v2.4.2

Activity

  1. zdohnal commented on Mar 27, 2023

    @zdohnal
    Member

    Hi @Japhier ,

    if you use a temporary queue, it seems some models are affected by this issue - there is an question about the same thing with Brother printer #634 . I've tested it on HP Color LaserJet Pro M277dw and it worked for me, but my Canon MF443 printer has the issue. It looks it differs from model to model...

  2. michaelrsweet commented on Jun 2, 2023

    @michaelrsweet
    Member

    Does adding *cupsSingleFile: true to the PPD file and restarting cupsd help?

  3. Japhier commented on Jun 6, 2023

    @Japhier
    Author

    Does adding *cupsSingleFile: true to the PPD file and restarting cupsd help?

    If this parameter is configured, multiple images can be printed. However, the printer pauses for 1 to 2 seconds (from printing to idle) before printing the next file. User experience is poor.

  4. michaelrsweet commented on Jun 6, 2023

    @michaelrsweet
    Member

    @Japhier There isn't anything we can do about the delay in CUPS 2.x - that's the penalty for cupsSingleFile, and the old CUPS 2.x print path doesn't allow for input documents to be merged prior to printing.

    Until CUPS 3.0 is finished, there are programs that can generate a PDF from a list of input images that will yield faster printing - ImageMagick, ippsample's ipptransform, etc.

  5. zdohnal commented on Jun 12, 2023

    @zdohnal
    Member

    @Japhier is the PPD generated by CUPS/cups-filters (there is IPP Everywhere/driverless in the PPD file) or classic one?

  6. Japhier commented on Jun 13, 2023

    @Japhier
    Author

    @Japhier is the PPD generated by CUPS/cups-filters (there is IPP Everywhere/driverless in the PPD file) or classic one?

    @zdohnal I use the IPP Everywhere print ppd file generated by cups. By default, there is no cupsSingleFile attribute, but I set single_file in cups/-ppd-cache.c to true, which also works.

  7. zdohnal commented on Jun 13, 2023

    @zdohnal
    Member

    @michaelrsweet can I add the PPD keyword by default when we generate the PPD?

  8. michaelrsweet commented on Jun 13, 2023

    @michaelrsweet
    Member
  9. added 2 commits that reference this issue on Jun 14, 2023
    67a8e09
    1504527
  10. Japhier commented on Jul 7, 2023

    @Japhier
    Author

    @michaelrsweet @zdohnal Hello, two experts. I want to learn the filter development process. I plan to develop a PDFtoraster filter based on the PDFium open source library. Is this solution feasible?

  11. michaelrsweet commented on Jul 20, 2023

    @michaelrsweet
    Member

    @Japhier You could certainly write a filter - the useful life of the filter will only be a few years, however, but assuming that PDFium can be packaged outside of Chrome it would be useful to have a starting point for a standalone PDF RIP that doesn't have an unfriendly license...

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions