paper size selection

Greg Saunders greg at lnxinc.com
Fri Jun 11 20:43:44 PDT 2004


Anonymous wrote:
> Greg Saunders wrote:
> 
>>Anonymous wrote:
>>
>>>Greg Saunders wrote:
>>>
>>>
>>>>This is a multi-part message in MIME format.
>>>>--------------000300000800080903090307
>>>>Content-Type: text/plain; charset=us-ascii; format=flowed
>>>>Content-Transfer-Encoding: 7bit
>>>>
>>>>Anonymous wrote:
>>>>
>>>>
>>>>>Greg Saunders wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Anonymous wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Greg Saunders wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Helge Blischke wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Greg Saunders wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Hi all.
>>>>>>>>>>
>>>>>>>>>>I have a bizarre problem with papaer size selection. I've used cups with great success on dozens of differenct types of printers and plotters and this is the first time I've run into the following problem.
>>>>>>>>>>
>>>>>>>>>>HP DesignJet 5000 plotter
>>>>>>>>>>CUPS v 1.1.19
>>>>>>>>>>Fedora Core 1
>>>>>>>>>>Samba 3.0.2
>>>>>>>>>>
>>>>>>>>>>The PPD supports a couple dozen paper sized including ISO, ANSI and North American paper sizes. When the driver is installed locally, i.e. run add printer on a W2k workstation and point the port to "file" as an example, all paper sizes are available.
>>>>>>>>>>
>>>>>>>>>>However, if you install the drivers on the Linux box running CUPS and install the printer via a "point and print" method after having uploaded them to the Linux/CUPS server, only A2, A3, A4, letter, tabloid and custom paper sizes are available to the client. I've scoured the PPD and everything seems normal, it even passes the CUPS ppd verify utility.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>If you configure that plotter using the CUPS web interface, are you then
>>>>>>>>>able to
>>>>>>>>>select any of the said page sizes?pushed
>>>>>>>>
>>>>>>>>Yes.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Helge
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>I've set up the queue via cups web interface and associated the HP
>>>>>>>>Design Jet PPD
>>>>>>>>
>>>>>>>>lpadmin -p hpdj5000 -P hp5000c1.ppd
>>>>>>>>
>>>>>>>>then used
>>>>>>>>
>>>>>>>>cupsaddsmb -U LNX\\root -v hpdj5000
>>>>>>>>
>>>>>>>>to make the driver downloadable via point and print with exactly the
>>>>>>>>same results as just using a W2k workstation to upload the drivers...
>>>>>>>>only 5 of the 24 available paper sizes "arrive" at the client.
>>>>>>>>
>>>>>>>>Greg
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Are they differences between the PPD used by CUPS and the one used by SAMBA ?
>>>>>>>
>>>>>>>diff /etc/cups/ppd/hpdj5000.ppd /etc/samba/drivers/W32X86/2/hpdj5000.ppd
>>>>>>>
>>>>>>>Regards.
>>>>>>
>>>>>>diff /var/samba/printers/W32X86/2/hp5000dj.PPD /etc/cups/ppd/hp5000dj.ppd
>>>>>>1622,1623d1621
>>>>>>< *cupsJobSheetsSupported:
>>>>>>"none,classified,confidential,secret,standard,topsecret,unclassified"
>>>>>>< *cupsJobSheetsDefault: "none,none"
>>>>>>
>>>>>>Somehow the ppd does get altered (via lpadmin -p hp5000dj -P
>>>>>>hp5000c1.ppd). In either case, CUPS web admin displays all available
>>>>>>paper sizes (so it would appear that the PPD is valid) but the client
>>>>>>(W2k) can only see A2, A3, A4, letter and tabloid. This is not just on
>>>>>>one workstation... a variety of W2k and XP machines.
>>>>>>
>>>>>>Greg
>>>>>>
>>>>>
>>>>>
>>>>>OK.
>>>>>
>>>>>1) And what about the differences between /var/samba/printers/W32X86/2/hp5000dj.PPD and the windows installed PPD C:\WINDOWS\system32\spool\drivers\w32x86\2\hp5000dj.ppd
>>>>
>>>>They are identical
>>>>
>>>>
>>>>
>>>>>2) What 'PostScript driver' are you using on W2K and 2000 (The cupsaddsmb supports both CUPS and Adobe) ? In case of CUPS Postscript driver, what version ?
>>>>
>>>>Adobe PScript 5 (new download)
>>>>
>>>>
>>>>
>>>>>3) Could you post an URL pointer to your 'C:\WINDOWS\system32\spool\drivers\w32x86\2\hp5000dj.ppd' PPD file ?
>>>>
>>>>I'm going to try and attach the PPD to this post. Failing that you can
>>>>retrieve it from: http://lnx.d2g.com:9080/lnxinc/hp5000dj.PPD
>>>>
>>>>
>>>>
>>>>>Regards.
>>>>>
>>>>
>>>>Many thanks
>>>>Greg
>>>>
>>>
>>>
>>>OK.
>>>It seems that 'cupstestppd' (available in the 1.1.20 version) detects unauthorized 'blank' characters on line 410 of the PPD file :
>>>
>>>..
>>>**FAIL** Unable to open PPD file - Missing asterisk in column 1 on line 410.
>>>         REF: Page 15, section 3.2
>>>
>>>Can you try to cleanup this line (it should just begin and end with a carriage return character).
>>
>>Done:
>># cupstestppd hp5000dj.PPD
>>hp5000dj.PPD: PASS
>>
>>
>>>Double-check the PPD conformance properties of the new corrected file.
>>>
>>>Then, override your /etc/cups/hp5000dj.ppd file with the new one.
>>
>>Done
>>
>>
>>>Relaunch the 'cupsaddsmb' command.
>>
>># cupsaddsmb -U LNX\\root -v hp5000dj
>>Running command: smbclient //localhost/print\$ -N -U'LNX\root%XXXX'
>>....
>>Running command: rpcclient localhost -N -U'LNX\root%XXXX' -c 'setdriver
>>hp5000dj hp5000dj'
>>Succesfully set hp5000dj to driver hp5000dj.
>>
>>
>>>On the windows XP side (I use this OS for the test), remove your printer, remove the driver (in the printer and fax system window, right-clic and select 'server properties').
>>
>>Done
>>
>>
>>>Just in case, reboot your workstation, then reinstall (with point and click) the printer and let me know if the problem remains.
>>
>>Done
>>
>>
>>>Regards.
>>
>>Yes, unfortunately the problem remains.
>>
>>Kind regards.
>>
>>
> 
> 
> OK.
> I reproduced the problem with AdobePS5 and CUPS 5.0rc3 using version 1.1.20 of CUPS under Linux/FedoraCore 1.
> I tried to modify lot of PPD statements without any success.
> But, then, I removed all the decimal parts of the 'priority' code in all lines begining with the PPD keywords '*OrderDependency:' and 'NonUIOrderDependency:' like this :
> 
> *OrderDependency: 40.0 AnySetup *PageSize
> 
> replaced by
> 
> *OrderDependency: 40 Anysetup *PageSize
> 
> I don't know why but it worked: I can see all the paper sizes now in the Windows printing interface.
> 
> Note that you have to modify the '/etc/cups/ppd/your_printer.ppd' file, execute the 'cupsaddsmb -v your_printer' command, and then destroy/reinstall the Windows printer.
> 
> Let me know if it works for you too.
> 
> Regards.

I performed the ppd edits and unfortunately, it did not work for me. I 
am using a Windows 2000 client and I will try this on an XP client on 
Monday. I am posting a link to my edited PPD. Perhaps you can email me 
(greg at lnxinc.com) the PPD that worked for you and I'll diff them. 
Perhaps there is something else that was inadvertantly edited that 
remedied the problem.

link to newly edited PPD
http://lnx.d2g.com:9080/lnxinc/hp5000dj.PPD

Thanks for all your assistance on this. I already owe you a beer so if 
you find yourself in Calgary, Alberta, Canada, send me a note and I'll 
buy you a pint.

Kind regards

Greg





More information about the cups mailing list