A small node backend that prints your uploaded PDFs


GitHub – chrispanag/printer-api: Upload a PDF and automatically print it






Upload a PDF and automatically print it

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

Sep 15, 2020

Sep 15, 2020

Sep 14, 2020

Sep 14, 2020

Sep 15, 2020

Sep 15, 2020

Sep 15, 2020

Sep 15, 2020

Sep 14, 2020

Sep 15, 2020

Ever wanted to upload a PDF from your web app and just print it? Here’s the solution ๐Ÿ˜‰

Getting Started

  1. Clone the repo
  2. yarn
  3. Edit the .env file. (See below for details)
  4. yarn run build
  5. yarn start

How to edit the .env file

PRINTER_NAME=<THE_NAME_OF_YOUR_PRINTER> (or delete the key completely to use your 'default' printer)
PORT=<PORT> (Default is 3000, change it as you wish)

Troubleshooting

I’ve only tested it on a Linux system (Ubuntu), and most probably it won’t work on Windows. Also, it won’t run (at least out of the box) on Docker.

Acknowledgments

Thanks to @thiagoelg for maintaining the npm module to interface with the printer.

About

Upload a PDF and automatically print it

Topics

Resources

License



You canโ€™t perform that action at this time.

Author: admin

Leave a Reply

Your email address will not be published.