HP 2600n and custom sizes [solved]
Posted by: Dominique ()
Date: December 11, 2008 04:06AM

How can I manage to write custom sizes like 10x15 cm ?
It is no option for that into CUPS printer dialog or configuration dialog when other printers, even very cheap ones, do have such options.



Edited 1 time(s). Last edit at 01/09/2009 12:36AM by rickrich.

Re: HP 2600n and custom sizes
Posted by: rickrich ()
Date: December 11, 2008 05:12AM

From INSTALL:
CUSTOM PAGE SIZE
----------------

    Append "PageSize=Custom.MMMxNNNin" to the lpr command.  E.G.

    $ lpr -P hp2600 -o PageSize=Custom.4x6in ~/testpage.ps
    $ lpr -P hp2600 -o PageSize=Custom.10x15cm ~/testpage.ps
    $ lpr -P hp1020 -o PageSize=Custom.4x6in ~/testpage.ps

    Or, use a GUI that allows the custom size parameters, e.g.
    "evince" - PostScript and PDF File Viewer.

Re: HP 2600n and custom sizes [solved]
Posted by: Dominique ()
Date: November 29, 2009 06:55AM

Thanks for the answer.
You put solved into the tittle of my message, but it is not what I want.

Is it some general solution that will work into cups and with any program? How can I can make different hp2600n printers for different paper sizes into the cups administrative page, and just, in any program and not just evince, select the hp2600n printer with the wanted paper size in order to print (this was working fine with a defunct epson printer)?

I see that the new cups version give me a custom paper size option when adding a hjp2600n printer.

But when I print the test page, I get:

stopped
"/usr/libexec/cups/filter/foomatic-rip failed"

So, maybe that this have to do with foomatic, but not sure. I even try to reinstall it from the sources, but the problem remain the same.

If I add the same printer, same options but with A4 paper size, it just work.

Also, the above lpr command work with both printers. But again, this is just showing me that what I want must be possible to do.

Re: HP 2600n and custom sizes [solved]
Posted by: rickrich ()
Date: November 29, 2009 07:25AM

From INSTALL:
CUSTOM PAGE SIZE
----------------

    Append "PageSize=Custom.MMMxNNNin" to the lpr command.  E.G.

    $ lpr -P hp2600 -o PageSize=Custom.4x6in ~/testpage.ps
    $ lpr -P hp2600 -o PageSize=Custom.10x15cm ~/testpage.ps
    $ lpr -P hp1020 -o PageSize=Custom.4x6in ~/testpage.ps

    Or, use a GUI that allows the custom size parameters, e.g.
    "evince" - PostScript and PDF File Viewer.

Re: HP 2600n and custom sizes [solved]
Posted by: Dominique ()
Date: November 29, 2009 09:30AM

Again, this is not what I want.

I just installed evince and I get the same error with it than with the cups web interface:

stopped
"/usr/libexec/cups/filter/foomatic-rip failed"

Back to cups web interface, the default size page is A4 when it should be Custom.10x15. Same with lpoptions

# lpoptions -p fotoglossy_10x15 -l
Quality/Printing Quality: draft *normal
ColorMode/Color Mode: Color *Monochrome
BitsPerPlane/Bits Per Plane: *1-BPP 2-BPP
PageSize/Page Size: Custom.WIDTHxHEIGHT Letter *A4 A5 B5 Env10 EnvB5 EnvC5 EnvDL EnvMonarch Executive Legal
...

Re: HP 2600n and custom sizes [solved]
Posted by: rickrich ()
Date: November 29, 2009 10:21AM

$ evince testpage.ps
Print setup -> Custom Size 1 (3x5in)
Print

$ grep foo2hp /var/log/messages
Nov 29 09:38:21 dual foo2hp2600-wrapper: foo2hp2600-wrapper -z0 -b1 -pCustom.216x360 -m1 -s7 -d2 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault
Nov 29 09:38:22 dual foo2hp2600-wrapper: gs -sPAPERSIZE=letter -g1800x3000 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Nov 29 09:38:22 dual foo2hp2600-wrapper: foo2hp -r600x600 -g1800x3000 -p1 -m1 -n1 -d2 -s7 -b1 -u 1x80 -l 1x80

$ rpm -q evince
evince-2.26.2-1.fc11.i586

$ rpm -q cups
cups-1.4.1-4.fc11.i586

$ rpm -q foomatic
foomatic-4.0.3-2.fc11.i586

Works good on Fedora 11.



Edited 3 time(s). Last edit at 11/29/2009 10:40AM by rickrich.

Sorry, you can't reply to this topic. It has been closed.
This forum powered by Phorum.