## Adjusting scan settings

### Adjusting scan settings using XSane or OpenOffice.org

Depending on the application, do either of the following to access the scan options:

- Using XSane

  1. On a terminal window, type xsane, and then press Enter.

  2. From the “device detection” dialog, navigate to:

     Available devices > select your printer > OK

  3. From the main dialog, do either of the following:

     - Click Window > Show standard options.

     - Click Window > Show advanced options.

- Using OpenOffice.org

  Note: You may use Writer, Impress, or Draw only.

  1. From an OpenOffice.org application toolbar, do either of the following:

     - Click Insert > Picture > Scan > Select Source.

     - Click Insert > Graphics > Scan > Select Source.

  2. From the “Device Used” menu, select your printer, and then click OK.

  3. Repeat step 1 to confirm if the correct printer is selected.

  4. From the “Options” area, select Image Settings or Advanced Settings.

Use | To
--- | ---
Content Type or content-type | Select the document type.
or scan-resolution | Select a scan resolution. Resolutions for all the printers are displayed as options. Make sure the printer supports the resolution you select. Note: The icon is found on the XSane main dialog.
or mode | Select a color depth. Note: The is found on the XSane main dialog.
Original Size or original-size | Select a document size. Document sizes for all the printers are displayed as options. Make sure the printer supports the size you select.
Scan both sides or scan-both-sides | Perform a duplex scan. Notes: Make sure that the printer has a duplex scanner and an Automatic Document Feeder (ADF). Make sure to load the document into the ADF. The duplex scanner and the ADF are available only in select models.
orientation or Orientation | Select a portrait or landscape orientation.
or brightness | Select a brightness setting. Note: The icon is found on the XSane main dialog.
or contrast | Select a contrast setting. Note: The icon is found on the XSane main dialog.
or source | Scan a single-sheet or a multiple-page document. Note: The icon is found on the XSane main dialog.
or Invert pixel values | Invert pixel values. Note: The icon is found on the XSane main dialog.
Background Removal | Remove smudges and light background shading when scanning color documents. Note: Background Removal is available only in XSane.
Color Dropout | Select a color to remove. Note: Color Dropout is available only in XSane.
Color Dropout Threshold | Select a color dropout quality. Note: Color Dropout Threshold is available only in XSane.
Mirror Image | Produce a mirror image of the document. Note: Mirror Image is available only in XSane.

Note: Your printer may not support all the options. For more information, see the printer User's Guide.

### Adjusting scan settings using scanimage

Some of the values are available only in select printer models.

Scanimage is a command-line-only application that uses the first scanner found and the default scan settings. A command initiates the scan and stores the image in TIFF or PXM format. You can provide command-line options to specify the scan settings.

For example, to initiate scanning of a legal-size document, type scanimage original-size=Legal > /tmp/image.pxm in the command line, and then press Enter.

To | Type
--- | ---
Command | Value
Specify the printer | -d [device_name] | [device_name]
Select the document type | content-type | Text Text/Graphics Photo
Select a scan resolution Note: Resolutions for all the printers are displayed as options. | scan-resolution | 75 100 150 200 300 400 600 1200 Note: Make sure the printer supports the resolution you select.
Select a color depth | mode | 1-bit Black & White 8-bit Grayscale 24-bit Color
Specify the document size Note: Document sizes for all the printers are displayed as options. | original-size | Letter Executive Legal A3 A4 A5 A6 B4 B5 Tabloid Oficio (Mexico) Folio Statement Universal Custom Scan Size ID Card 3x5 Photo 4x6 Photo Business Card Book Original Auto Size Mixed Size 3x5 in 3.5x5 in 4x6 in 4x8 in 5x7 in 8x10 in 9x13 cm 10x15 cm 10x20 cm 13x18 cm 20x25 cm L 2L Hagaki Note: Make sure the printer supports the size you select.
Specify the document being scanned | document-source | Black and White Laser Color Laser Inkjet Plain Inkjet Glossy Retail Photo Photo Magazine Newspaper Press Auto/Other Notes: Make sure the printer supports the size you select. The printer uses the default values if the option is not supported.
Perform a duplex scan | scan-both-sides | no yes Notes: Make sure your printer has a duplex scanner and an Automatic Document Feeder (ADF). Make sure to load the document into the ADF. The duplex scanner and ADF are available only in select printer models.
Select a portrait or landscape orientation | orientation | portrait landscape
Select a brightness setting | brightness | 1–9
Select a contrast setting | contrast | 0–5
Scan a single-page or multiple-page document | source | Single Page Multiple Pages
Invert pixel values | negative-image | no yes
Remove smudges and light background shading when scanning color documents | background-removal | -4–+4
Specify a color to remove | color-dropout | None Red Green Blue
Select a color dropout quality | color-dropout-threshold | 0–254
Produce a mirror image of the document | mirror-image | no yes

Notes:

- To get a list of supported options, you can also type scanimage --help.
- Some options are supported only in select printer models. For more information, see the printer User's Guide.

### Setting default scan options

All default scan options are stored in the scan driver configuration file, /etc/sane.d/lexmark_nscan.conf. Changing the values in the scan driver configuration file changes the default settings. The settings are reflected in the application.

XSane stores the most recently used scan settings in the ${HOME}/.sane/xsane directory. In order for XSane to reflect the changes you made in the scan driver configuration file, do the following:

1. Close XSane in the application.

2. On a terminal window, type the following, and then press Enter:

   rm -f ${HOME}/.sane/xsane/*.drc

3. Type xsane, and then press Enter.