Sticky
SULDR Forums Supported Printers Printing Questions Scanning Questions General Questions Samsung Installer

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jmaris

Pages: [1]
1
Scanner Server (Scan to PC) / Scan to PC problem with SCX-4728FD
« on: August 09, 2013, 08:45:24 »
Hello,

I own a Samsung SCX-4728FD multifunction device.

The printer driver worked like a charm, but I am facing some issues with scantopc application.

I installed from the repository which was updated today on my laptop which is running debian 7.0

The function works pretty well when I choose JPEG as the format.

But when I choose PDF format the scan fails to complete and I get the following error in logs:

08-09-13 15:33:21 stdout       INFO     Waiting for user selection ...
08-09-13 15:33:30 stdout       INFO         Got it!
08-09-13 15:33:30 stdout       INFO     Options selected by user: {'name': 'Gray-S_PDF-75', 'format': 'FORMAT_PDF', 'color': 'COLOR_GRAY', 'filters': [], 'output': '${homedir}/Downloads/Scans/SCAN_${date}__${uid}', 'resolution': 'DPI_75', 'size': 'SIZE_A4'}
08-09-13 15:33:30 stdout       INFO     MODE: Grayscale - 256 Levels
08-09-13 15:33:30 stdout       INFO     DPI: 75
08-09-13 15:33:30 stdout       INFO     SIZE: A4 - 210x297 mm
08-09-13 15:33:30 stdout       INFO     Scanning ...
08-09-13 15:33:45 stderr       INFO     Whoops! Problem scanning (maybe version Samsung device driver >= 4.1 and multi-scan?):
08-09-13 15:33:45 stderr       INFO     Traceback (most recent call last):
08-09-13 15:33:45 stderr       INFO       File "/usr/bin/samsungScannerServer.py", line 466, in scanAndSave
08-09-13 15:33:45 stderr       INFO         fileName=baseFileName+'.'+EXTENSIONS[user_selection["format"]] #t-k: seperate baseFileName
08-09-13 15:33:45 stderr       INFO     KeyError: 'FORMAT_PDF'
08-09-13 15:33:48 stdout       INFO     Waiting for scan job ...

Similar log errors for every available PDF options.

My config is:

##
##  Config file for the samsung scanner server
##

## Change to True after adapting your settings (False otherwise)
ENABLED_SERVER=True

## t-k: change to True if you want to use the modified classes of the sane module and TCP/UDP
##      proxies which were optimized for CLX-3305W multipage scanning support (False otherwise)
MODIFIED_SANE=False
## t-k: debug level of proxies: 0 = nothing at all, 1 = very light, 2 = a bit more, 3 = every package
PROXY_DEBUGLEVEL=1
## t-k: if you aim to use more than one server at a time with your scanner change to False
SCANNER_CACHING=True

## t-k: now possible to comment out everything before OUTPUT_PREFIX for automatic configuration
##      (this takes longer for SCANNER_SANE_NAME)

##  SANE name of the scanner
##  Find with "scanimage -L" or comment out to use the first detected SAMSUNG scanner
#SCANNER_SANE_NAME='smfp:SAMSUNG CLX-3300 Series on 192.168.178.29'
SCANNER_SANE_NAME='smfp:SAMSUNG SCX-472x Series on 192.168.2.6'

## Name to display in the scanner screen, defaults to hostname of server running machine
#SERVER_NAME='server'
SERVER_NAME='j'

## t-k: Linux username and/or userid (uid) of the future owner of scan files
#OWNER_UID=1000 ## t-k: defaults to 1000 (e.g. first ubuntu user)
#OWNER='username'
OWNER='j'

## By default files are saved to ~/Scans/. If something else is wanted change in OUTPUT_PREFIX.
##     ~ is the HOME directory of the 'first' user (the one with uid 1000) (default)
##     or the one by the user given above

## Output file names. #t-k folder doesn't have to exist (is now created automatically)
OUTPUT_PREFIX='${homedir}/Downloads/Scans/SCAN_${date}__${uid}' ## t-k: automatic home dir, uid zero padded

##  Contrast filter used in OPTIONS
##  The filter functions receive a python image object and return a modified one
##  For more details: http://www.pythonware.com/library/pil/handbook/index.htm
def contrastFilter(im):
    ## Filter the 10% bridgest and darkest colors
    return ImageOps.autocontrast(im,10)

## Options to offer in the scanner -> check <scanner IP>/DPI/cap.xml or <scanner IP>/IDS/CAP.XML
OPTIONS=[
    {'name':'Gray-M_PDF-300' ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Color-M_PDF-300','color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-JPEG-300'  ,'color':'COLOR_GRAY','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Color-JPEG-300' ,'color':'COLOR_TRUE','resolution':'DPI_300','format':'FORMAT_JPEG' ,'size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-M_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_M_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
    {'name':'Gray-S_PDF-75'  ,'color':'COLOR_GRAY','resolution':'DPI_75' ,'format':'FORMAT_S_PDF','size':'SIZE_A4','output':OUTPUT_PREFIX, 'filters':[]},
]

## Convertion tables
## t-k: might need some device-specific tweaking (especially SIZE2SANE)
##      see scanimage --help, and look at device options
MODES2SANE={'COLOR_MONO':'Black and White - Line Art', 'COLOR_GRAY':'Grayscale - 256 Levels','COLOR_TRUE':'Color - 16 Million Colors'}
#SIZE2SANE={'SIZE_A4':'A4','SIZE_A5':'A5','SIZE_B5_JIS':'B5 (JIS)','SIZE_EXECUTIVE':'Executive','SIZE_LETTER':'Letter','SIZE_LEGAL':'Legal','SIZE_FOLIO':'Folio'}
SIZE2SANE={'SIZE_A4': 'A4 - 210x297 mm', 'SIZE_A5': 'A5 (Rotated) - 210x148 mm',
           'SIZE_B5_JIS': 'B5 (JIS) - 182x257 mm', 'SIZE_EXECUTIVE': 'Executive - 7.25"x10.5"',
           'SIZE_LETTER': 'Letter - 8.5"x11"'}
EXTENSIONS={'FORMAT_S_PDF':'pdf','FORMAT_M_PDF':'pdf','FORMAT_JPEG':'jpg','FORMAT_S_TIFF':'tiff','FORMAT_M_TIFF':'tiff'}

## logging settings
LOG_NAME="/var/log/samsungScannerServer.log" ## If commented out then the logging to a file will be dissabled
LOG_MAXBYTES=100000
LOG_BACKUPCOUNT=1


I tried with the modified sane value set to true but in this case the scan stops earlier with connection issues.

Any ideas would be welcome.

Thank you in advance.

Pages: [1]
Repository Information Legal Contact Alternative Drivers