Bug#922409: cups-filters: Printing a test page prints 3 pages on duplex printer
fixed 922409 1.22.4
thanks
On Fri 15 Feb 2019 at 15:59:02 +0100, Paul Menzel wrote:
> Package: cups-filters
> Version: 1.21.6-3
> Severity: normal
>
> Dear Debian folks,
Thank you for your detailed investigations and report, Paul.
> Printing a CUPS test page for the duplex printer Canon iR-ADV C2225
> PCL, three pages on two sheets are printed. The template/content of
> all three pages looks the same.
>
> Talking to the CUPS developer, in the past only two pages were
> supposed to be printed, but I was referred to the cups-filters
> package. [1]
>
> Looking at `filter/bannertopdf.c`, the number of copies is doubled,
> but I guess it should be one in the first place, so also here, only
> two pages should be printed.
>
> ```
> copies = get_int_option("number-up", noptions, options, 1);
> if (duplex_marked(ppd, noptions, options))
> copies *= 2;
>
> if (copies > 1)
> pdf_duplicate_page(doc, 1, copies);
>
> pdf_write(doc, stdout);
> ```
>
> Can that PDF file be written to disk and looked at, so that it
> does need to be actually printed?
See
https://github.com/OpenPrinting/cups-filters/issues/102.
pdfinfo will give the number of pages in the PDF.
> This is also reproducible on Ubuntu 18.10. Ubuntu uses a PDF
> template(?) instead of an SVG one, so it’s unrelated to that.
>From the changelog for cups-filters 1.22.4:
- bannertopdf: When multiplying the page for N-up or Duplex
printing one page too much was generated (Issue #102)
I tested successfully using bannertopdf from experimental. I am unsure
whether the bug should be closed if a package is not in unstable.
Regards,
Brian.
Reply to: