php 调用扫描仪,如何从浏览器中触发扫描仪? | 您所在的位置:网站首页 › web调用扫描仪 › php 调用扫描仪,如何从浏览器中触发扫描仪? |
包括scanner.js: ,并呼吁scanner.scan: function scanToWebPageAndUploadToWebServer() { scanner.scan(displayImagesOnPage, { "twain_cap_setting": { "ICAP_PIXELTYPE": "TWPT_GRAY", "ICAP_XRESOLUTION": "200", "ICAP_YRESOLUTION": "200" }, "prompt_scan_more": true, "discard_blank_pages": "false", "blank_page_threshold": "0.02", "output_settings": [ { "type": "return-base64-thumbnail", "format": "jpg", "thumbnail_height": 200 }, { "type": "upload", "format": "pdf", "pdf_force_black_white": "false", "pdfa_compliant": "false", "pdf_text_line": "By ${USERNAME} on ${DATETIME}", "exif": { "DocumentName": "Doc Scan Powered by Asprise.com", "UserComment": "Scanned using Asprise software" }, "upload_target": { "url": "https://asprise.com/scan/applet/upload.php?action=dump", "max_retries": 2, "post_fields": { "provider": "Asprise" }, "cookies": "name=Asprise; domain=asprise.com", "auth": "user:pass", "headers": [ "Referer: http://asprise.com" ], "log_file": "null", "max_operation_time": 600 } } ] } ); } |
CopyRight 2018-2019 实验室设备网 版权所有 |