You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to print multiple files to a local printer #643
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
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...
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.
@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.
@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.
@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?
@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...
Activity
zdohnal commentedon Mar 27, 2023
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...
michaelrsweet commentedon Jun 2, 2023
Does adding
*cupsSingleFile: trueto the PPD file and restarting cupsd help?Japhier commentedon Jun 6, 2023
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.
michaelrsweet commentedon Jun 6, 2023
@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.
zdohnal commentedon Jun 12, 2023
@Japhier is the PPD generated by CUPS/cups-filters (there is IPP Everywhere/driverless in the PPD file) or classic one?
Japhier commentedon Jun 13, 2023
@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.
zdohnal commentedon Jun 13, 2023
@michaelrsweet can I add the PPD keyword by default when we generate the PPD?
michaelrsweet commentedon Jun 13, 2023
@zdohnal Yes.
cups/ppd-cache.c: Put cupsSingleFile into generated PPD
cups/ppd-cache.c: Put cupsSingleFile into generated PPD
PPD file generator: Put "*cupsSingleFile: True" into generated PPD
Japhier commentedon Jul 7, 2023
@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?
michaelrsweet commentedon Jul 20, 2023
@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...