├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── nodejs.yml ├── .gitignore ├── README.md ├── app.js ├── app ├── controller │ └── home.js ├── router.js ├── schedule │ ├── call_printer.js │ └── execute_print.js ├── service │ ├── printer.js │ └── render.js ├── util │ ├── decoratePage.js │ ├── getBrowser.js │ ├── getPagePool.js │ ├── getPrintTaskQueue.js │ ├── getTaskQueue.js │ ├── pagePool.js │ ├── printTaskQueue.js │ ├── task.js │ └── taskQueue.js └── view │ ├── demo.html │ ├── index.html │ └── 鬼刀.png ├── appveyor.yml ├── compile ├── build-test.sh ├── build.sh ├── deploy-test.sh └── deploy.sh ├── config ├── config.default.js ├── index.js ├── plugin.js └── printerConfig.js ├── fonts └── simhei.ttf ├── jsconfig.json ├── package.json ├── pm2.config.json ├── pm2.test.config.json └── test └── app └── controller └── home.test.js /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app.js -------------------------------------------------------------------------------- /app/controller/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/controller/home.js -------------------------------------------------------------------------------- /app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/router.js -------------------------------------------------------------------------------- /app/schedule/call_printer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/schedule/call_printer.js -------------------------------------------------------------------------------- /app/schedule/execute_print.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/schedule/execute_print.js -------------------------------------------------------------------------------- /app/service/printer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/service/printer.js -------------------------------------------------------------------------------- /app/service/render.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/service/render.js -------------------------------------------------------------------------------- /app/util/decoratePage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/decoratePage.js -------------------------------------------------------------------------------- /app/util/getBrowser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/getBrowser.js -------------------------------------------------------------------------------- /app/util/getPagePool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/getPagePool.js -------------------------------------------------------------------------------- /app/util/getPrintTaskQueue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/getPrintTaskQueue.js -------------------------------------------------------------------------------- /app/util/getTaskQueue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/getTaskQueue.js -------------------------------------------------------------------------------- /app/util/pagePool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/pagePool.js -------------------------------------------------------------------------------- /app/util/printTaskQueue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/printTaskQueue.js -------------------------------------------------------------------------------- /app/util/task.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/task.js -------------------------------------------------------------------------------- /app/util/taskQueue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/util/taskQueue.js -------------------------------------------------------------------------------- /app/view/demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/view/demo.html -------------------------------------------------------------------------------- /app/view/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/view/index.html -------------------------------------------------------------------------------- /app/view/鬼刀.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/app/view/鬼刀.png -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/appveyor.yml -------------------------------------------------------------------------------- /compile/build-test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/compile/build-test.sh -------------------------------------------------------------------------------- /compile/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/compile/build.sh -------------------------------------------------------------------------------- /compile/deploy-test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/compile/deploy-test.sh -------------------------------------------------------------------------------- /compile/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/compile/deploy.sh -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/config/config.default.js -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = {}; 3 | -------------------------------------------------------------------------------- /config/plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/config/plugin.js -------------------------------------------------------------------------------- /config/printerConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/config/printerConfig.js -------------------------------------------------------------------------------- /fonts/simhei.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/fonts/simhei.ttf -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/jsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/package.json -------------------------------------------------------------------------------- /pm2.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/pm2.config.json -------------------------------------------------------------------------------- /pm2.test.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/pm2.test.config.json -------------------------------------------------------------------------------- /test/app/controller/home.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexwjj/html-to-pdf/HEAD/test/app/controller/home.test.js --------------------------------------------------------------------------------