From: Till Kamppeter <till.kamppeter@gmail.com>
To: Alex Korobkin <korobkin+op@gmail.com>,
Tobias Hoffmann <lprint-list@thax.hardliners.org>
Cc: "printing-architecture@lists.linux-foundation.org"
<printing-architecture@lists.linux-foundation.org>
Subject: Re: [Printing-architecture] Number of copies in pure PDF workflow
Date: Fri, 17 Oct 2014 18:40:13 +0200 [thread overview]
Message-ID: <5441466D.8070003@gmail.com> (raw)
In-Reply-To: <CA+3RNfic7_2J2DZ9TKZWKAK_CEGQfiTQ7k1sMFoL23YCsyKHzQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]
Thank you very much.
Pushed the attached additional patch to the BZR repo (rev. 7300).
Till
On 10/17/2014 06:22 PM, Alex Korobkin wrote:
> Works beautifully, thank you. And thanks for digging up the exact rules
> of QTY and COPIES application.
>
>
> 2014-10-16 16:59 GMT-04:00 Tobias Hoffmann
> <lprint-list@thax.hardliners.org <mailto:lprint-list@thax.hardliners.org>>:
>
> On 16/10/14 18:52, Alex Korobkin wrote:
>
> Turns out, there should be one additional line for collate to
> work with multiple copies and multiple pages:
> PJL SET QTY=X
>
> Could you please modify your patch to generate two lines at
> once: PJL SET COPIES=X and PJL SET QTY=X?
>
> The attached patch does that. It's based on BZR rev. 7299, which
> already includes the SET COPIES modifications (Till also posted the
> corresponding .patch, earlier).
>
> I did some research, though... and it seem that (only) "SET COPIES"
> should be used for non-collated and only(!) "SET QTY" should be used
> for collated duplicates.
> Please do try whether just SET QTY is enough:
> if (param.deviceCollate) {
> snprintf(ppd->jcl_ps, size, "@PJL SET QTY=%d\n%s",
> param.deviceCopies, attr->value);
> } else {
> [...]
>
> Tobias
>
>
>
>
>
>
> --
> -Alex
[-- Attachment #2: pjlcollate-v2.patch --]
[-- Type: text/x-patch, Size: 848 bytes --]
=== modified file 'filter/pdftopdf/pdftopdf_jcl.cc'
--- filter/pdftopdf/pdftopdf_jcl.cc 2014-10-16 15:48:05 +0000
+++ filter/pdftopdf/pdftopdf_jcl.cc 2014-10-17 16:37:10 +0000
@@ -152,8 +152,13 @@
/* Add a PJL command to implement the hardware copies */
const size_t size=strlen(attr->value)+1+30;
ppd->jcl_ps=(char *)malloc(size*sizeof(char));
- snprintf(ppd->jcl_ps, size, "@PJL SET COPIES=%d\n%s",
- param.deviceCopies, attr->value);
+ if (param.deviceCollate) {
+ snprintf(ppd->jcl_ps, size, "@PJL SET QTY=%d\n%s",
+ param.deviceCopies, attr->value);
+ } else {
+ snprintf(ppd->jcl_ps, size, "@PJL SET COPIES=%d\n%s",
+ param.deviceCopies, attr->value);
+ }
} else
ppd->jcl_ps=strdup(attr->value);
ppd_decode(ppd->jcl_ps);
next prev parent reply other threads:[~2014-10-17 16:40 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-03 19:28 [Printing-architecture] Number of copies in pure PDF workflow Alex Korobkin
2014-10-03 19:49 ` Ira McDonald
2014-10-03 20:23 ` Alex Korobkin
2014-10-04 15:40 ` Michael Sweet
2014-10-04 17:36 ` Alex Korobkin
2014-10-04 19:47 ` Tobias Hoffmann
2014-10-05 4:58 ` Alex Korobkin
2014-10-04 19:48 ` Michael Sweet
2014-10-05 5:03 ` Alex Korobkin
2014-10-06 14:12 ` Michael Sweet
2014-10-06 15:07 ` Alex Korobkin
2014-10-06 15:32 ` Michael Sweet
2014-10-06 15:55 ` Alex Korobkin
2014-10-06 16:01 ` Michael Sweet
2014-10-07 11:49 ` Till Kamppeter
2014-10-07 11:55 ` Michael Sweet
2014-10-07 12:12 ` Till Kamppeter
2014-10-06 12:54 ` Till Kamppeter
2014-10-06 14:06 ` Alex Korobkin
2014-10-07 14:06 ` Alex Korobkin
2014-10-07 20:03 ` Till Kamppeter
2014-10-07 21:18 ` Alex Korobkin
2014-10-07 21:45 ` Tobias Hoffmann
2014-10-08 2:53 ` Alex Korobkin
2014-10-08 9:57 ` Till Kamppeter
2014-10-08 14:40 ` Tobias Hoffmann
2014-10-08 19:41 ` Alex Korobkin
2014-10-08 20:53 ` Tobias Hoffmann
2014-10-10 18:38 ` Alex Korobkin
2014-10-10 20:06 ` Tobias Hoffmann
2014-10-10 20:58 ` Till Kamppeter
2014-10-14 19:17 ` Alex Korobkin
2014-10-14 21:09 ` Tobias Hoffmann
2014-10-15 10:50 ` Tobias Hoffmann
2014-10-15 13:12 ` Till Kamppeter
2014-10-15 15:04 ` Till Kamppeter
2014-10-15 16:17 ` Till Kamppeter
2014-10-15 19:28 ` Tobias Hoffmann
2014-10-16 15:53 ` Till Kamppeter
2014-10-16 16:52 ` Alex Korobkin
2014-10-16 20:59 ` Tobias Hoffmann
2014-10-17 16:22 ` Alex Korobkin
2014-10-17 16:40 ` Till Kamppeter [this message]
2014-10-20 16:23 ` Alex Korobkin
2014-10-20 16:29 ` Till Kamppeter
2014-10-20 17:28 ` Alex Korobkin
2014-10-20 20:30 ` Till Kamppeter
2014-10-20 21:18 ` Alex Korobkin
2014-10-15 16:22 ` Tobias Hoffmann
2014-10-15 17:06 ` Alex Korobkin
2014-10-15 19:02 ` Tobias Hoffmann
2014-10-15 19:16 ` Tobias Hoffmann
2014-10-07 22:40 ` Michael Sweet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5441466D.8070003@gmail.com \
--to=till.kamppeter@gmail.com \
--cc=korobkin+op@gmail.com \
--cc=lprint-list@thax.hardliners.org \
--cc=printing-architecture@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.