From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <543EC814.1060700@thax.hardliners.org> Date: Wed, 15 Oct 2014 21:16:36 +0200 From: Tobias Hoffmann MIME-Version: 1.0 References: <5432910A.4030500@gmail.com> <54344707.4080604@gmail.com> <54345EF9.5010405@thax.hardliners.org> <54350A8E.1010406@gmail.com> <54354CDA.50401@thax.hardliners.org> <5435A44F.7080504@thax.hardliners.org> <54383C34.6020108@thax.hardliners.org> <5438486E.9050201@gmail.com> <543D9108.6050307@thax.hardliners.org> <543E5168.9010108@thax.hardliners.org> <543E72C7.3090603@gmail.com> <543E9F5F.8090106@thax.hardliners.org> <543EC4C3.4020405@thax.hardliners.org> In-Reply-To: <543EC4C3.4020405@thax.hardliners.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Printing-architecture] Number of copies in pure PDF workflow List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Korobkin Cc: "printing-architecture@lists.linux-foundation.org" , Till Kamppeter Some more comments ... below. On 15/10/14 21:02, Tobias Hoffmann wrote: > On 15/10/14 19:06, Alex Korobkin wrote: >> Till, your patch works for me, at least for pure PDF workflow. I >> haven't tested all cases yet, just a JCL-based PPD and a PDF printing. >> >> Tobias, I haven't tested your patch. Is it different from Till's patch? >> > > Till's patch only reached me after if sent mine, but, the basic idea > is obviously the same. > My patch > 1) also fixes an existing issue of memory ownership when ppd->jcl_ps > is replaced > 2) will only insert @PCL SET COPIES, when jcl_begin uses the known PJL > begin sequence (copied from what pstops does wrt. to PCL). That should be tested. > 3) but it does not handle *Copies specially. That did not seem that > important to me; it probably makes some sense for the > "*JCLToPDFInterpreter exists, but it's not PCL" case. Specifically, what happens here is: The "Extended Settings" UI element's (generated for *Copies) value is replaced by the generic copies UI setting. I don't think it's that good of an idea, esp. as Foomatic-PPDs (which are about the only PPDs that use Copies) will not the PJL insertion feature from pdftopdf ... and thus will not have their UI value replaced. But IF printer dialogs handle *Copies specially, for Foomatic, then no code is needed in pdftopdf, as well... Tobias