HP LaserJet P1505 / P1505n :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Not support paper size 16K ? [Debian 5.0; solved]
Posted by: cee1 ()
Date: March 05, 2010 09:30PM

Hi all,
I've noticed the driver(from foo2xqx) for HP P1505 doesn't support a paper size option of "16K".
Is there any way to support this paper size?


Regards



Edited 2 time(s). Last edit at 03/07/2010 09:27PM by rickrich.

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: rickrich ()
Date: March 05, 2010 10:08PM

Use a custom size, there are three "16K"'s in the Windows HP LJ P1505 driver::

16K 184x260mm
16K 195x270mm
16K 197x273mm

And "PRC16K" in the Adobe PPD spec:

PRC16K 146x215mm



Edited 2 time(s). Last edit at 03/07/2010 08:01AM by rickrich.

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: cee1 ()
Date: March 05, 2010 11:37PM

Hi rickrich,
Thanks for your reply.

Where do I set this custom size? I'm running KDE3 on a MIPS-compatible machine.

Is there any way to write the "16K" paper size in the PPD file?


Thanks

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: cee1 ()
Date: March 06, 2010 02:01AM

rickrich Wrote:
-------------------------------------------------------
> Use a custom size, there are three "16K"'s in the
> Windows driver::
>
> 16K 184x260mm
> 16K 195x270mm
> 16K 197x273mm

I've tried all these three "16K", unfortunately all failed with print job hanging (IPP status code 0x5):
lpr -P P1505 -o media=letter -o PageSize=Custom.195x270mm doc
lpr -P P1505 -o media=letter -o PageSize=Custom.184x260mm doc
lpr -P P1505 -o media=letter -o PageSize=Custom.197x273mm doc

I'm updating foo2zjs to the latest version, the problem still exists.
Any idea?

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: rickrich ()
Date: March 06, 2010 08:16AM

$ rpm -q cups
cups-1.4.2-20.fc11.i586

$ rpm -q foomatic
foomatic-4.0.4-1.fc11.i586

$ echo "test" | lpr -P test-p1505 -o media=letter -o PageSize=Custom.195x270mm

# grep foo2xqx /var/log/messages
Mar  6 07:05:28 dual foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -pCustom.553x765 -m1 -s7 -d1 -n1
Mar  6 07:05:28 dual foo2xqx-wrapper: gs -sPAPERSIZE=letter -g9212x6377 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
Mar  6 07:05:28 dual foo2xqx-wrapper: foo2xqx -r1200x600 -g9212x6377 -p359 -m1 -n1 -d1 -s7  -u 2x84 -l 2x84
Works fine here on Fedora 11.

What distro/version? Did you install a Third Party version? Did you delete and recreate the printer after you installed my version?



Edited 3 time(s). Last edit at 03/06/2010 10:44AM by rickrich.

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: cee1 ()
Date: March 06, 2010 08:54PM

Hi rickrich,

My distro is based on Debian lenny.

$ dpkg -s cups
Version: 1.3.8-1+lenny6

$ dpkg -s foomatic-filters
Version: 3.0.2-20080211-3.2

$ dpkg -s foomatic-db
Version: 20080211-2+num1

Still I perfer a "ParperSize 16K" in ppd, it will be easy to use.


Thanks.



Edited 1 time(s). Last edit at 03/06/2010 08:56PM by cee1.

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: rickrich ()
Date: March 07, 2010 07:31AM

From the Changelog:
2010-03-07      Rick Richardson <rick.richardson@comcast.net>
        * foo2*-wrapper: Bug fix for custom page size.  Some versions
          of CUPS don't embed the size in the PS file:
            %%BeginFeature: *CustomPageSize True
            552.755920410156 765.354370117188 1 0.000000 0.000000
          and only list it in the command line:
            foo2zjs-wrapper -pCustom.533x765

Options: ReplyQuote
Re: Not support paper size 16K ?
Posted by: cee1 ()
Date: March 07, 2010 07:43PM

Hi rickrich,
Thanks for your work.

It still failed, but with another error:

D [08/Mar/2010:08:37:46 +0800] [Job 43] renderer command: foo2xqx-wrapper -r1200x600 -pCustom.553x765 -s7 -m1 -d1 -n1
D [08/Mar/2010:08:37:46 +0800] [Job 43] /usr/bin/foo2xqx-wrapper: 449: dc: not found
D [08/Mar/2010:08:37:46 +0800] [Job 43] /usr/bin/foo2xqx-wrapper: 449: dc: not found
D [08/Mar/2010:08:37:46 +0800] [Job 43] Illegal format 'x' for -g
D [08/Mar/2010:08:37:46 +0800] [Job 43]
D [08/Mar/2010:08:37:46 +0800] [Job 43] Closing renderer



Edited 2 time(s). Last edit at 03/07/2010 08:41PM by rickrich.

Options: ReplyQuote
Re: Not support paper size 16K ? [Debian 5.0]
Posted by: rickrich ()
Date: March 07, 2010 08:37PM

$ sudo apt-get install dc

Options: ReplyQuote
Re: Not support paper size 16K ? [Debian 5.0]
Posted by: cee1 ()
Date: March 07, 2010 09:03PM

It works, thank you.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.