
SmartGDI Driver from Samsung
============================

For Samsung ML-4500, ML-2xx, ML-1xxx, ML-5080, ML-6040, ... and Lexmark E210

To be used with GhostScript 6.x, 7.x, or newer

Patch-free version created by Till Kamppeter, license: GPL (www.gnu.org).


This is the original driver version issued by Samsung. Note that it
does not print all files. The driver compresses the page's bitmap in
bands. If a band happens to have a size bigger than 64 kB after
compressing the printer cannot print it. Please apply the patch
gdevgdi-64k-bands-gtaylor.patch using the command:

patch -p1 < gdevgdi-64k-bands-gtaylor.patch

to the gdevgdi.c file to fix the problem (patch made by Grant Taylor).


Integration in GhostScript
--------------------------

1. Uncompress the GhostScript source package

2. Go into its main directory and copy the files of this package to there

3. Enter the following commands

   mv gdevgdi.c src/
   patch -p0 < gdevgdi-64k-bands-gtaylor.patch
   cat smartgdi-contrib.mak >> src/contrib.mak

4. If you have ESP GhostScript 7.05 or newer, tell the "configure"
script to use build GhostScript with the "gdi" driver:

   ./configure --with-drivers=gdi

or

   ./configure --with-drivers=ALL,gdi

Enter

   ./configure --help

for more info.

5. If you have any other GhostScript version, edit src/unix-gcc.mak adding
" $(DD)gdi.dev" to the end of one of the "DEVICE_DEVS" lines. Don't forget that the entries in these lines must be separated by spaces. Or simply enter

   perl -p -i -e 's/^DEVICE_DEVS3=/DEVICE_DEVS3=\$\(DD\)gdi.dev /' src/unix-gcc.mak

6. Compile and install GhostScript as described in its documentation.



Usage
-----

GhostScript command line:

gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=gdi -sPAPERSIZE=<paper size> -r<resolution> -sOutputFile=- -


Options:

<paper size>
    letter, legal, a4, ... not bigger than legal

<resolution>
    300 or 600 (for 300 dpi or 600 dpi)


Example:

This command line prints file.ps in 600 dpi on A4 paper when the printer is
connected to the parallel port:

cat file.ps | gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=gdi -sPAPERSIZE=a4 -r600 -sOutputFile=- - | cat /dev/lp0


Spooler integration:

The best is to use the facilities of Foomatic/linuxprinting.org. Go to:

   http://www.linuxprinting.org/show_driver.cgi?driver=gdi

download the configuration file for your spooler and read how to install and
use it by following the appropriate "Documentation" link.



Bugs, questions?
----------------

Post on the Samsung list on linuxprinting.org:

   http://www.linuxprinting.org/newsportal/
   http://www.linuxprinting.org/newsportal/thread.php3?name=linuxprinting.samsung.general
   http://www.linuxprinting.org/cgi-bin/mailman/listinfo/samsung-list

Happy printing!

