Giter Club home page Giter Club logo

cocoa-printer-server's People

Contributors

hoto-cocoa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cocoa-printer-server's Issues

Change User Info

Application should provide option to that makes user can change own account's email, username, password.

Packaging

Make single executable file to easy to use.

Config to Database

At this time, configuration value saved in 'config.json' file, But it's hard to edit to non-developer users.
So, It will move to database, and configurable in web interface.

Print options

At this time, Paper size hard-coded to A4, and only able to print to portrait layout, and Can't print to both-sides. And, can't select value of margin and ratio. This values maybe passed to GhostScript by command line arguments.

Move to AJAX

Now, this application will move page to do some action. This is bad approach, It should be changed to AJAX with API.

Support Linux

At this time, "mswinpr2" passed to gs as argument of sDEVICE.
Should change it to detect operating system and changes it to something like cups.

Implements of SNMP

For support adding printer on windows, should implemented SNMP server in this server. that uses UDP/161 port, Can listened by require('dgram').createSocket('udp4').on('message', d => console.log(Buffer.from(d).toString('hex'))).bind(161);.
When i trying to add network printer on windows, windows sends 302702010004067075626c6963a11a020162020100020100300f300d06092b06010401950b01020500 data at 4 times, and sends 302602010004067075626c6963a019020164020100020100300e300c06082b060102010101000500 data 4~5 times. provided data was hex encoded.
image
image
For more information of SNMP, please see RFC3413.

ARM64 Windows problem on npm install

npm i

> [email protected] install c:\Cocoa-Printer-Server\node_modules\ghostscript4js
> node-gyp rebuild


c:\Cocoa-Printer-Server\node_modules\ghostscript4js>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\gs\bin\gsdll32.lib
C:\gs\bin\gsdll32.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> c:\Cocoa-Printer-Server\node_modules\ghostscript4js\build\Release\\nothing.lib
  Copying C:/gs/bin/gsdll32.dll to c:\Cocoa-Printer-Server\node_modules\ghostscript4js/build/Release\gsdll32.dll
  The system cannot find the path specified.
  Copying C:/gs/bin/gsdll32.lib to c:\Cocoa-Printer-Server\node_modules\ghostscript4js/build/Release\gsdll32.lib
  The system cannot find the path specified.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238
,5): warning MSB8064: Custom build for item "C:\gs\bin\gsdll32.dll" succeeded, but specified dependency "c:\gs\bin\gsdl
l32.dll" does not exist. This may cause incremental build to work incorrectly. [c:\Cocoa-Printer-Server\node_modules\gh
ostscript4js\build\ghostscript4js.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238
,5): warning MSB8065: Custom build for item "C:\gs\bin\gsdll32.dll" succeeded, but specified output "c:\cocoa-printer-s
erver\node_modules\ghostscript4js\build\release\gsdll32.dll" has not been created. This may cause incremental build to
work incorrectly. [c:\Cocoa-Printer-Server\node_modules\ghostscript4js\build\ghostscript4js.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238
,5): warning MSB8064: Custom build for item "C:\gs\bin\gsdll32.lib" succeeded, but specified dependency "c:\gs\bin\gsdl
l32.lib" does not exist. This may cause incremental build to work incorrectly. [c:\Cocoa-Printer-Server\node_modules\gh
ostscript4js\build\ghostscript4js.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238
,5): warning MSB8065: Custom build for item "C:\gs\bin\gsdll32.lib" succeeded, but specified output "c:\cocoa-printer-s
erver\node_modules\ghostscript4js\build\release\gsdll32.lib" has not been created. This may cause incremental build to
work incorrectly. [c:\Cocoa-Printer-Server\node_modules\ghostscript4js\build\ghostscript4js.vcxproj]
  ghostscript4js.cc
  win_delay_load_hook.cc
  Generating Code...
LINK : fatal error LNK1104: cannot open file 'c:\Cocoa-Printer-Server\node_modules\ghostscript4js\build\Release\gsdll32
.lib' [c:\Cocoa-Printer-Server\node_modules\ghostscript4js\build\ghostscript4js.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1

Invalid key length

Hello!
I'm trying to running ir on Mac but i got this error.

(node:7909) UnhandledPromiseRejectionWarning: Error: Invalid key length at Cipheriv.createCipherBase (internal/crypto/cipher.js:103:19) at Cipheriv.createCipherWithIV (internal/crypto/cipher.js:121:20) at new Cipheriv (internal/crypto/cipher.js:227:22) at Object.createCipheriv (crypto.js:122:10) at IncomingMessage.<anonymous> (/Users/agustinpallares/Downloads/Impresion/Cocoa-Printer-Server/routes/register.post.js:13:54) at IncomingMessage.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1333:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) (Use node --trace-warnings ...to show where the warning was created) (node:7909) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:7909) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I18n

  • Separating language data
  • Add Korean language
  • Add Korean Documentation.

ipp protocol

files and keywords of your project use 'ipp'. How is this project related to IPP?
Does this printer-server support ipp messages for request and response?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.