Samsung CLP-310, CLP-315 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
CLP-310N: Page image a little too large [solved; it is right]
Posted by: rogerprice ()
Date: May 04, 2009 04:43PM

I went into the office and found that someone had bought a Samsung
CLP-310N colour laser printer because it was "real small". The
job now is getting it to work with Cups 1.3.7 and Ghostscript 8.62
running on openSUSE 11.0.

foo2qpdl: The make and make install went well, and I installed
the printer using Cups administration, declaring the PPD to be
/usr/share/ppd/foo2zjs/Samsung-CLP-315.ppd.gz . I tweaked the Cups
printer options for colour printing on A4 paper with no colour
correction, and the result, scanned at 120dpi, is visible at
http://rogerprice.org/CLP-310N-foo2qpdl-test-page.jpg . The full Cups
1.3.7 test page is visible at
http://rogerprice.org/Cups-1.3.7-test-page.jpg (sorry about the ink
smudges).

The scale is missing at the outside edge, but apart from the absence
of colour correction, what is visible is ok.

Is there a convenient way of making the page image slightly smaller so
that it fits inside the printable area?

Roger



Edited 1 time(s). Last edit at 05/04/2009 05:13PM by rickrich.

Options: ReplyQuote
Re: CLP-310N: Page image a little too large
Posted by: rickrich ()
Date: May 04, 2009 05:12PM

You should use clp-315 color correction.
$ make; ./getweb 315; sudo make install
No, the page parms are correct:
$ grep foo2qpdl /var/log/messages
May  4 16:04:19 dual foo2qpdl-wrapper: foo2qpdl -r1200x600 -g9920x7016 -p2 -m0 -n1 -d1 -s1 -z0  -u 150x100 -l 150x100
9920 x 7016 = 8.2666 x 11.6933

Options: ReplyQuote
Re: CLP-310N: Page image a little too large [solved; it is right]
Posted by: rogerprice ()
Date: May 11, 2009 12:49PM

$ grep foo2qpdl /var/log/messages
produces nothing with openSUSE. The following patch fixes the problem:
41a42,48
> # Where does this distribution hide the logger?
> if [ -x "/usr/bin/logger" ]; then
>    LOGGER=/usr/bin/logger
> elif [ -x "/bin/logger" ]; then
>    LOGGER=/bin/logger
> else LOGGER="/nologger"
> fi
46,47c53,54
< if [ -x /usr/bin/logger ]; then
<     logger -t "$BASENAME" -p lpr.info -- "$BASENAME $@" </dev/null
---
> if [ -x $LOGGER ]; then
>     $LOGGER -t "$BASENAME" -p lpr.info -- "$BASENAME $@" </dev/null
505,506c512,514
<           if [ -x /usr/bin/logger ]; then
<               logger -t "$BASENAME" -p lpr.info -- \
---
>
>           if [ -x $LOGGER ]; then
>               $LOGGER -t "$BASENAME" -p lpr.info -- \
676,677c684,685
< if [ -x /usr/bin/logger ]; then
<     logger -t "$BASENAME" -p lpr.info -- \
---
> if [ -x $LOGGER ]; then
>     $LOGGER -t "$BASENAME" -p lpr.info -- \
679c687
<     logger -t "$BASENAME" -p lpr.info -- \
---
>     $LOGGER -t "$BASENAME" -p lpr.info -- \
which produces the result
May 11 16:19:07 cyan foo2qpdl-wrapper: foo2qpdl-wrapper -z2 -c -r600x600\
                     -p2 -s1 -m0 -d1 -n1 -C10 -Gsamclp315-argyll-0.icm
May 11 16:19:15 cyan foo2qpdl-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600\
                     -sDEVICE=bitcmyk -dCOLORSCREEN -dMaxBitmap=500000000
May 11 16:19:15 cyan foo2qpdl-wrapper: foo2qpdl -r600x600 -g4960x7016 -p2 -m0\
                     -n1 -d1 -s1 -z2 -c -u 75x100 -l 75x100   -B -A

-g4960 x 7016 = 8.2666 x 11.6933

I agree completely that this is the correct definition of the A4 paper
loaded into the tray, but the CLP-310N is not a full bleed printer.
It is not capable of printing over the entire surface of the paper.

The "Imageable Area" of the CLP-310N is given by the scrambled test page
produced by Samsung's own PPD+filter.
If you look carefully at http://rogerprice.org/CLP-310N-test-page.jpg
you will see the Samsung Imageable Area report :
  Page size: 7.92x11.35in
             201.1x288.2mm
 Lower-Left: 0.17x0.17in
             4.4x4.4mm
Upper-Right: 8.09x11.52in
             205.5x292.6mm
 Resolution: 600x600dpi
             23562x23562dpm

If you look at http://rogerprice.org/CLP-310N-foo2qpdl-test-page.jpg you will see that
foo2qpdl's Imageable area is
  Page Size: 8.27x11.69in
             210.0x297.0mm
 Lower Left: 0.0x0.0im
             0.0x0.0mm
Upper Right: 8.27x11.69in
             210.0x297.0mm

Because foo2qpdl assumes Paper Size = Imageable Area, the test page printed by
foo2qpdl is missing the detail of the outer edge of the Cups 1.3.7 test page.
See http://rogerprice.org/Cups-1.3.7-test-page.jpg which shows the outer detail.

If you look at Samsung's own PPD at http://rogerprice.org/CLP-310splc.ppd you will see
that for A4 paper, Samsung are calling for a 12.5 point outer margin.

Is it possible to specify such an outer margin with foo2qpdl?

Roger

Options: ReplyQuote
Re: CLP-310N: Page image a little too large [solved; it is right]
Posted by: rickrich ()
Date: May 11, 2009 01:23PM

It is RIGHT! Measure it!

Options: ReplyQuote
Re: CLP-310N: Page image a little too large [solved; it is right]
Posted by: rogerprice ()
Date: May 11, 2009 03:48PM

I have measured a piece of A4 paper. I agree with you that an A4 page is
210x297mm (8.27x11.69in). But that is not the Imageable area of a Samsung
CLP-310N printer. How else do you explain that foo2qpdl is unable to
display correctly the Cups 1.3.7 test page?

Perhaps we are talking at cross purposes here. Lets set aside for a moment
the question of size of paper.

Have you seen that the Cups 1.3.7 test page http://rogerprice.org/CLP-310N-foo2qpdl-test-page.jpg
produced by foo2qpdl is wrong? The outer detail is missing. What is causing this?

Roger

Options: ReplyQuote
Re: CLP-310N: Page image a little too large [solved; it is right]
Posted by: rickrich ()
Date: May 11, 2009 04:21PM

Did you MEASURE. The scale is right.

Closing this topic.

Options: ReplyQuote


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