lossa

Results 11 comments of lossa

因为使用了node-addon-api. 而这个库需要使用node-gyp编译C++代码。 node-gyp编译时候需要用python和微软vitual studio编译环境。 所以编译时候用到了python。贴出报错提示信息。

你的电脑是windows,使用nvm切换成64位的nodejs试试?

`Could not find any Visual Studio installation to use` 目前看node-gyp没有找到Visual Studio。电脑需要安装这个。 过段时间我看看能不能把编译好的东西放上去。就不需要你们编译了。

> > `Could not find any Visual Studio installation to use` 目前看node-gyp没有找到Visual Studio。电脑需要安装这个。 > > 过段时间我看看能不能把编译好的东西放上去。就不需要你们编译了。 > > 我看gyp那个配置,mac用的xcode是吗 很遗憾,TWAIN官方提供的twain-server还没有提供Mac端。我没在Mac上跑通过。

请具体描述一下你的问题。 目前TWAIN协议支持查看当前所有扫描仪的功能。 前提是你的扫描仪支持TWAIN协议,并且电脑也安装了这个扫描仪的驱动。 ``` const sources = app.getDataSources() // ["PaperStream IP SP-1120N #2"] const defaultSource = app.getDefaultSource() // "PaperStream IP SP-1120N #2" ``` 这样就能看到所有链接的扫描仪了。 这个只能看到支持TWAIN协议的扫描仪。并不是所有扫描仪都支持这个协议。 并且扫描仪的source端,操作系统默认不带的,需要安装,也就是上文说的TWAIN驱动。 操作系统自带TWAIN的Source Manager端。 我们node-twain实现的是Client端。

According to the twain-specification, you need to set Capability : **CAP_DUPLEX** This is how the method should be called ``` session.setCapability(CAP_DUPLEX, TWDX_2PASSDUPLEX) ``` However, this method “setCapability” has not been...

Yes, because I currently only have a scanner that supports Windows and not a scanner that supports TWAIN for Mac systems. So I can't debug on Mac for the time...

Thank you. I don't have a scanner that supports Mac, so I can't debug. I don't currently have plans to purchase a new scanner. If anyone could donate a scanner...

> I dont have a scanner to donate but the offical TWAIN Working Group has a twain-samples repository which contains sample datasources. https://github.com/twain/twain-samples Yes,I develop this repo refer to this...