Giter Club home page Giter Club logo

silentprint's Introduction

SilentPrint

网页实现静默打印

应用说明

主要用于业务系统类型的web页面,为网页提供静默打印服务。

SilentPrint目前支持了

  • 指定用户打印设备 v1.0.0
  • 指定打印页面 v1.0.0

未来将继续增加对更多打印 ['图片', 'PDF', '网页部分内容' ... ] 形式的支持。欢迎有兴趣的小伙伴一同开发。

支持windows 32位 64位(>= v1.0.0)。

下载安装

点击此处下载应用

应用截图

开发说明

目前仅针对Windows, Mac 。Linux平台并未测试。

如果你想要学习、开发、修改或自行构建SilentPrint,可以依照下面的指示:

  1. 你需要有node、git环境。需要了解npm的相关知识。
  2. git clone https://github.com/wxingheng/SilentPrint.git 并进入项目
  3. npm install 下载依赖
  4. Mac需要有Xcode环境,Windows需要有VS环境。

开发模式

输入npm run dev进入开发模式,开发模式具有热重载特性。不过需要注意的是,开发模式不稳定,会有进程崩溃的情况。此时需要:

ctrl+c # 退出开发模式
npm run dev # 重新进入开发模式

生产模式

如果你需要自行构建,可以npm run build开始进行构建。构建成功后,会在build目录里出现构建成功的相应安装文件。

注意:如果你的网络环境不太好,可能会出现electron-builder下载electron二进制文件失败的情况。这个时候需要在npm run build之前指定一下electron的源为国内源:

export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
npm run build

只需第一次构建的时候指定一下国内源即可。后续构建不需要特地指定。二进制文件下载在~/.electron/目录下。如果想要更新electron构建版本,可以删除~/.electron/目录,然后重新运行上一步,让electron-builder去下载最新的electron二进制文件。

需要帮助

联系我 [email protected]

License

MIT

Copyright (c) 2018 Molunerfinn

silentprint's People

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  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

silentprint's Issues

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.