Here's the output - it doesn't make much sense to me, but I'm not a
Python person, if that's what it is.

                            },
            'type' => 1,
            'title' => 'Contrast',
            'constraint_type' => 1
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'compression',
            'val' => 'JPEG',
            'unit' => 0,
            'desc' => 'Selects the scanner compression method for faster scans, 
possibly at the expense of image quality.',
            'constraint' => [
                              'None',
                              'JPEG'
                            ],
            'type' => 3,
            'title' => 'Compression',
            'constraint_type' => 3
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'jpeg-quality',
            'val' => 10,
            'unit' => 0,
            'desc' => 'Sets the scanner JPEG compression factor. Larger numbers 
mean better compression, and smaller numbers mean better image quality.',
            'constraint' => {
                              'min' => 0,
                              'max' => 100,
                              'quant' => 0
                            },
            'type' => 1,
            'title' => 'JPEG compression factor',
            'constraint_type' => 1
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'batch-scan',
            'val' => 0,
            'unit' => 0,
            'desc' => 'Enables continuous scanning with automatic document 
feeder (ADF).',
            'type' => 0,
            'title' => 'Batch scan',
            'constraint_type' => 0
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'source',
            'val' => 'ADF',
            'unit' => 0,
            'desc' => 'Selects the scan source (such as a document-feeder).',
            'constraint' => [
                              'ADF'
                            ],
            'type' => 3,
            'title' => 'Scan source',
            'constraint_type' => 3
          },
          {
            'cap' => 32,
            'unit' => 0,
            'max_values' => 0,
            'type' => 0,
            'constraint_type' => 0
          },
          {
            'cap' => 64,
            'unit' => 0,
            'max_values' => 0,
            'title' => 'Geometry',
            'type' => 5,
            'constraint_type' => 0
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'length-measurement',
            'val' => 'Padded',
            'unit' => 0,
            'desc' => 'Selects how the scanned image length is measured and 
reported, which is impossible to know in advance for scrollfed scans.',
            'constraint' => [
                              'Unknown',
                              'Approximate',
                              'Padded'
                            ],
            'type' => 3,
            'title' => 'Length measurement',
            'constraint_type' => 3
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'tl-x',
            'val' => 0,
            'unit' => 3,
            'desc' => 'Top-left x position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => '215.899993896484',
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Top-left x',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'tl-y',
            'val' => 0,
            'unit' => 3,
            'desc' => 'Top-left y position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => 381,
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Top-left y',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'br-x',
            'val' => '215.899993896484',
            'unit' => 3,
            'desc' => 'Bottom-right x position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => '215.899993896484',
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Bottom-right x',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'br-y',
            'val' => 381,
            'unit' => 3,
            'desc' => 'Bottom-right y position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => 381,
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Bottom-right y',
            'constraint_type' => 1
          }
        ];
Setting option 16 on SANE_Handle 197020144
sane_set_option returned status Success with info 4
Setting option 6 on SANE_Handle 197020144
sane_set_option returned status Success with info 2
Getting option 0 from SANE_Handle 197020144
Getting option description 1 from SANE_Handle 197020144
Getting option description 2 from SANE_Handle 197020144
Getting option 2 from SANE_Handle 197020144
Getting option description 3 from SANE_Handle 197020144
Getting option 3 from SANE_Handle 197020144
Getting option description 4 from SANE_Handle 197020144
Getting option description 5 from SANE_Handle 197020144
Getting option 5 from SANE_Handle 197020144
Getting option description 6 from SANE_Handle 197020144
Getting option 6 from SANE_Handle 197020144
Getting option description 7 from SANE_Handle 197020144
Getting option 7 from SANE_Handle 197020144
Getting option description 8 from SANE_Handle 197020144
Getting option 8 from SANE_Handle 197020144
Getting option description 9 from SANE_Handle 197020144
Getting option 9 from SANE_Handle 197020144
Getting option description 10 from SANE_Handle 197020144
Getting option description 11 from SANE_Handle 197020144
Getting option description 12 from SANE_Handle 197020144
Getting option 12 from SANE_Handle 197020144
Getting option description 13 from SANE_Handle 197020144
Getting option 13 from SANE_Handle 197020144
Getting option description 14 from SANE_Handle 197020144
Getting option 14 from SANE_Handle 197020144
Getting option description 15 from SANE_Handle 197020144
Getting option 15 from SANE_Handle 197020144
Getting option description 16 from SANE_Handle 197020144
Getting option 16 from SANE_Handle 197020144
Sane->get_option_descriptor returned: $VAR1 = [
          undef,
          {
            'cap' => 0,
            'unit' => 0,
            'max_values' => 0,
            'title' => 'Scan mode',
            'type' => 5,
            'constraint_type' => 0
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'mode',
            'val' => 'Color',
            'unit' => 0,
            'desc' => 'Selects the scan mode (e.g., lineart, monochrome, or 
color).',
            'constraint' => [
                              'Lineart',
                              'Gray',
                              'Color'
                            ],
            'type' => 3,
            'title' => 'Scan mode',
            'constraint_type' => 3
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'resolution',
            'val' => 75,
            'unit' => 4,
            'desc' => 'Sets the resolution of the scanned image.',
            'constraint' => {
                              'min' => 75,
                              'max' => 600,
                              'quant' => 0
                            },
            'type' => 1,
            'title' => 'Scan resolution',
            'constraint_type' => 1
          },
          {
            'cap' => 64,
            'unit' => 0,
            'max_values' => 0,
            'title' => 'Advanced',
            'type' => 5,
            'constraint_type' => 0
          },
          {
            'cap' => 101,
            'max_values' => 1,
            'name' => 'contrast',
            'val' => 50,
            'unit' => 0,
            'desc' => 'Controls the contrast of the acquired image.',
            'constraint' => {
                              'min' => 0,
                              'max' => 100,
                              'quant' => 0
                            },
            'type' => 1,
            'title' => 'Contrast',
            'constraint_type' => 1
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'compression',
            'val' => 'None',
            'unit' => 0,
            'desc' => 'Selects the scanner compression method for faster scans, 
possibly at the expense of image quality.',
            'constraint' => [
                              'None',
                              'JPEG'
                            ],
            'type' => 3,
            'title' => 'Compression',
            'constraint_type' => 3
          },
          {
            'cap' => 101,
            'max_values' => 1,
            'name' => 'jpeg-quality',
            'val' => 10,
            'unit' => 0,
            'desc' => 'Sets the scanner JPEG compression factor. Larger numbers 
mean better compression, and smaller numbers mean better image quality.',
            'constraint' => {
                              'min' => 0,
                              'max' => 100,
                              'quant' => 0
                            },
            'type' => 1,
            'title' => 'JPEG compression factor',
            'constraint_type' => 1
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'batch-scan',
            'val' => 0,
            'unit' => 0,
            'desc' => 'Enables continuous scanning with automatic document 
feeder (ADF).',
            'type' => 0,
            'title' => 'Batch scan',
            'constraint_type' => 0
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'source',
            'val' => 'ADF',
            'unit' => 0,
            'desc' => 'Selects the scan source (such as a document-feeder).',
            'constraint' => [
                              'ADF'
                            ],
            'type' => 3,
            'title' => 'Scan source',
            'constraint_type' => 3
          },
          {
            'cap' => 32,
            'unit' => 0,
            'max_values' => 0,
            'type' => 0,
            'constraint_type' => 0
          },
          {
            'cap' => 64,
            'unit' => 0,
            'max_values' => 0,
            'title' => 'Geometry',
            'type' => 5,
            'constraint_type' => 0
          },
          {
            'cap' => 69,
            'max_values' => 1,
            'name' => 'length-measurement',
            'val' => 'Padded',
            'unit' => 0,
            'desc' => 'Selects how the scanned image length is measured and 
reported, which is impossible to know in advance for scrollfed scans.',
            'constraint' => [
                              'Unknown',
                              'Approximate',
                              'Padded'
                            ],
            'type' => 3,
            'title' => 'Length measurement',
            'constraint_type' => 3
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'tl-x',
            'val' => 0,
            'unit' => 3,
            'desc' => 'Top-left x position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => '215.899993896484',
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Top-left x',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'tl-y',
            'val' => 0,
            'unit' => 3,
            'desc' => 'Top-left y position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => 381,
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Top-left y',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'br-x',
            'val' => '215.899993896484',
            'unit' => 3,
            'desc' => 'Bottom-right x position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => '215.899993896484',
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Bottom-right x',
            'constraint_type' => 1
          },
          {
            'cap' => 5,
            'max_values' => 1,
            'name' => 'br-y',
            'val' => 279,
            'unit' => 3,
            'desc' => 'Bottom-right y position of scan area.',
            'constraint' => {
                              'min' => 0,
                              'max' => 381,
                              'quant' => 0
                            },
            'type' => 2,
            'title' => 'Bottom-right y',
            'constraint_type' => 1
          }
        ];
Setting option 3 on SANE_Handle 197020144
sane_set_option returned status Success with info 4
Setting option 2 on SANE_Handle 197020144
sane_set_option returned status Success with info 4
$VAR1 = [];
rotate facing 0
rotate reverse 0
non-duplex mode
rotate_facing 0
rotate_reverse 0
unpaper 
OCR 
Running sane_start for SANE_Handle 197020144
gscan2pdf: sane_start: Document feeder out of documents
Error running process: Died at (eval 39) line 7.

  $device->start;
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  if ($Sane::STATUS != SANE_STATUS_GOOD) {
   print "$prog_name: sane_start: $Sane::STATUS\n" if $debug;
   $shash{$sane_thread}{go} = 0;
   die; # quickest way out of the eval block
  }

  my $path = $shash{$sane_thread}{data};
  if (not open($fh, ">", $path)) {
   $device->cancel;
   $shash{$sane_thread}{status} = SANE_STATUS_ACCESS_DENIED;
   $shash{$sane_thread}{go} = 0;
   die; # quickest way out of the eval block
  }
  scan_page($device, $fh);
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  close $fh;
  printf "Scanned page %s.", $path if $debug;
  printf " (scanner status = %d)\n", $Sane::STATUS if $debug;
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  $shash{$sane_thread}{go} = 0;
 
$VAR1 = [];
rotate facing 0
rotate reverse 0
non-duplex mode
rotate_facing 0
rotate_reverse 0
unpaper 
OCR 
Running sane_start for SANE_Handle 197020144
Getting parameters for SANE_Handle 197020144
gscan2pdf: scanning image of size 1700x2197 pixels at 8 bits/pixel
gscan2pdf: acquiring gray frame
gscan2pdf: min/max graylevel value = 0/255
gscan2pdf: read 3734900 bytes in total
Scanned page /tmp/cGxj8cvs60/out1.pnm. (scanner status = 5)
importing scan with resolution=200
Format is P5
Header is 37
Header suggests 3734937
Expecting 3734937, found 3734937
Importing /tmp/cGxj8cvs60/out1.pnm, format Portable anymap
Running sane_start for SANE_Handle 197020144
Added /tmp/cGxj8cvs60/49plRlYvw9.pnm at page 1 with resolution 200
gscan2pdf: sane_start: Document feeder out of documents
Error running process: Died at (eval 43) line 7.

  $device->start;
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  if ($Sane::STATUS != SANE_STATUS_GOOD) {
   print "$prog_name: sane_start: $Sane::STATUS\n" if $debug;
   $shash{$sane_thread}{go} = 0;
   die; # quickest way out of the eval block
  }

  my $path = $shash{$sane_thread}{data};
  if (not open($fh, ">", $path)) {
   $device->cancel;
   $shash{$sane_thread}{status} = SANE_STATUS_ACCESS_DENIED;
   $shash{$sane_thread}{go} = 0;
   die; # quickest way out of the eval block
  }
  scan_page($device, $fh);
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  close $fh;
  printf "Scanned page %s.", $path if $debug;
  printf " (scanner status = %d)\n", $Sane::STATUS if $debug;
  $shash{$sane_thread}{status} = $Sane::STATUS+0;
  $shash{$sane_thread}{go} = 0;
 
Forked PID 12439
Defining page at 612pt x 790.92pt
Adding /tmp/cGxj8cvs60/49plRlYvw9.pnm at 200 dpi
Process 12439 exited.
Closing SANE_Handle 197020144
Exiting via sane_exit

-- 
PDF is split in grayscale
https://bugs.launchpad.net/bugs/619187
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to