Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JSPrintManagerNew to Visual Studio Code? Get it now.
JSPrintManager

JSPrintManager

Neodynamic

|
102,818 installs
| (0) | Free
Print Commands & Files, Manage Printers & Scan Docs from Javascript. JSPrintManager is a Javascript + Client App solution for Client-side Printing & Scanning scenarios allowing you to easily send raw data, text and native printer commands and known file formats (like PDF, TXT, DOC, XLS, JPG, PNG) to
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSPrintManager - Print Commands & Files, Manage Printers & Scan Docs from Javascript

JSPrintManager is a Javascript + Client App solution for Client-side Printing scenarios designed to be used in any Website developed on top of any Web Platform like ASP.NET, PHP, Django, Ruby On Rails (RoR), Express.js and more!

By writing pure Javascript code, JSPrintManager allows you to easily send raw data, text and native commands as well as known file formats (like PDF, TXT, DOC, XLS, JPG, PNG) to any printer installed or available at the client machine without showing or displaying any print dialog box!

Scan Documents & Images is also supported!

JSPrintManager Components

  • The Website component (JSPrintManager.js) is a Javascript object which is used in a website to generate "Client Print Jobs".

  • The Client-side component is a lightweight native app (without any dependencies) that processes all the "Client Print Jobs" generated by the Javascript object. JSPrintManager App can be installed on Windows, Linux, Mac & Raspberry Pi! Download JSPrintManager App...

How to use JSPrintManager Visual Studio Code Extension

Just type the prefix jspm to list the code snippets in HTML files.

Features

Raw Data Printing

Send any raw data & commands supported by the client printer like EPSON ESC/POS, HP PCL, PostScript, Zebra ZPL and Eltron EPL, and more! Shipping labels generated by postal services like UPS, FedEx, USPS, DHL as well as PRN files are also supported!

Advanced PDF Printing

Print PDF files without requiring Adobe Reader or any other external software! Advanced PDF Printing settings include Tray Name, Paper Size, Print Rotation, Pages Range, Duplex, Password-protection and more!

Print Images & Docs

In addition to print raw commands, you can also use JSPrintManager solution to send and print known file formats like PDF, TXT, DOC/x, XLS/x, JPG, PNG, and more! PDF, TXT, PNG, JPG and BMP are natively supported; others will require external software like Word, Excel, LibreOffice, etc.

Advanced DOC Printing

Print DOC files silently with Advanced Printing settings including Password-protected files, manual Duplex, Pages Range, and more! Windows only, requires MS Word 97+

Advanced XLS Printing

Print XLS files silently with Advanced Printing settings including Password-protected files, Pages Range, and more! Windows only, requires MS Excel 97+

Print Files With Password

Print Password Protected PDF, DOC & XLS files! The password protected file is set at server side and the password to unlock it is encrypted and embedded into the file as part of its metadata.

Web Scan Docs & Images

Scan docs & images through any TWAIN/WIA/SANE-compatible devices specifying settings like DPI Resolution, Pixel Mode (Grayscale, Color), and Output Image Format (JPG, PNG)!

Tray/Bin & Paper Size

If the printer is installed in the client system through a Printer Driver, then you can specify to which Tray Name to send the print job and specify a Paper Size if desired. The file formats supported by this feature are PDF, JPEG, PNG, BMP & TXT

BIDI Serial Comm

Bidirectional Serial Port Communication support! Send/Write & Receive/Read data strings to any RS-232, COM & TTY port available on the client system.

Get Printers Info & Status

Besides getting the list of installed printers available in the client machine, you can also get further details like DPI Resolution, PortName, "Is Connected", "Is Shared", "Is Local", "Is Network", "Is Virtual or Real/Physical printer?", as well as the list of supported Papers and list of trays/bins!

Printers Watcher

Detect when a new printer is added, when a printer is removed/deleted, and when any changes or modifications are done on any printers available at the client machine. Windows only

Get Print Jobs Status

Trace print jobs status when targeting any installed client printers. Got notified whether the print job completed, number of printed pages, and many more related information.

Print Server Mode

JSPrintManager can be installed and configured as a dedicated print service on a given Desktop, Server or Device running Windows, Linux, macOS/OSX or Raspberry Pi OSes

Print from Mobile & Sandboxed Devices

With JSPrintManager in Print Server Mode, clients such as mobile/sandboxed devices (running iOS, Android, ChromeOS...) and Terminal Services/Citrix environments will be able to print from your website! Useful for Mobile Billing, Mobile POS, Mobile Ordering, etc.

Print to Any Printer

Print to any brand and type of client printers! Thermal Label Barcode printers, POS receipt printers, Impact printers, Ticket printers, RFID printers, Dot-Matrix, 3D Printers and more!

Get Printers Info

Besides getting the list of installed printers available in the client machine, you can also get further details like DPI Resolution, PortName, "Is Connected", "Is Shared", "Is Local", "Is Network", "Is Virtual or Real/Physical printer?", as well as the list of supported Papers and list of trays/bins!

Tray & Paper Size

If the printer is installed in the client system through a Printer Driver, then you can specify to which Tray Name to send the print job and specify a Paper Size if desired. The file formats supported by this feature are PDF, JPEG, PNG, BMP & TXT

Printer Communication

Client Printers Connectivity support: installed printers through Printer Driver (for USB connection), Shared Printers, Parallel Port (LPT) or Serial Port RS-232 (COM) as well as IP/Ethernet Network printers. On Linux & Mac OS, any kind of printer installed through CUPS is supported.

Any Web Platform

Based on pure Javascript code, JSPrintManager.js can be used in any Web Platform like ASP.NET, PHP, Django, Ruby On Rails (RoR), Express.js as well as in any Web Framework like Angular or React

Cross Platform Client

Any Client platform can print from your Website. JSPrintManager App supports Windows, macOS / OS X, Linux & Raspberry Pi (Linux ARM) devices. It's a very small client App without external dependencies! ~~No ActiveX, No Flash, No Silverlight, No Java, No .NET Framework~~

Sample Code

This GitHub repo contains the source code of JSPrintManager Online Demo Website

Licensing

JSPrintManager is a Commercial product. Licensing model and prices are available here

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

  • Initial release of JSPrintManager

1.0.1

  • Fixed! UTF8 string to Byte Array conversion.
  • Improved! WebSocket connection.

1.0.2

  • Fixed! Honoring UTF8 BOM for raw printer commands.

2.0.0

  • New! Print PDF silently without Adobe Reader or FoxIt Reader dependencies for Windows Clients!
  • New! PDF file custom printing settings like Print as Grayscale, Print Annotations, Rotation, Page Range and more! Refer to the PrintFilePDF class in the help doc
  • New! TXT file custom printing now featuring settings like Print Orientation, Text Alignment (Justify, Left, right, center); output font name, size, color and style (bold, italic, underline, strikethrough) and margins! Refer to the PrintFileTXT class in the help doc
  • New! Get Installed Printers from the client with useful info about them like PortName, Is Connected, Is Shared, Is Local, Is Network, DPI Resolution, as well as the list of supported Papers and list of trays/bins. With this info it's possible to infer whether a given device is a real/physical printer or a virtual printer
  • New! InstalledPrinter class now supports Tray Name and Paper Name settings. NOTE: The supported file formats allowed for these new settings are BMP, JPG, PNG, TXT and PDF
  • New! Print Server Mode which allows printing scenarios where mobile/sandboxed devices (running iOS, Android, Chrome OS, etc.) and Terminal Services/Citrix environments are involved
  • New! Support for non-Admin user accounts
  • Improved! Memory Managment and WebSockets communication

2.0.1

  • Fixed! Error "Invalid ClientJob: Invalid printer type" when using JSPM.NetworkPrinter class.

2.0.2

  • Fixed! Error Raw commands encoding for chars in the range 128-255/80-FF.

3.0.0

  • New! All advanced PDF printing (Print as Grayscale, Print Annotations, Rotation, Page Range) in v2.0 that were available for Windows, now are available for macOS and Linux!
  • New! Added more PDF printing settings like Sizing (None & Fit), Auto Center, and Auto Rotate to PrintFilePDF class.
  • New! Printing Password-protected PDF files through PrintFilePDF class.
  • New! Added manual Duplex printing support for PDF files through PrintFilePDF class.
  • New! Added new PrintFileDOC class supporting .docx, .docm, .dotx, .dotm, .doc, .dot, .rtf, and .odt file formats. For Windows clients only. Requires Microsoft Word 97+!
  • New! Support for printing Password-protected DOC files, and options like manual Duplex, Pages Range through the brand new PrintFileDOC class. For Windows clients only. Requires Microsoft Word 97+!
  • New! Added new PrintFileXLS class supporting .xl, .xlsx, .xlsm, .xlsb, .xlam, .xltx, .xltm, .xls, .xla, .xlt, .xlm, .xlw and .ods file formats. For Windows clients only. Requires Microsoft Excel 97+!
  • New! Support for printing Password-protected XLS files, and Pages Range setting through the brand new PrintFileXLS class. For Windows clients only. Requires Microsoft Excel 97+!
  • New! Added Duplex printing options (Default, Simplex, Vertical, Horizontal) to InstalledPrinter based on the built-in duplex support of the target printer.
  • New! Added None option to TextAlignment enum for printing txt files as is i.e. without any alignment.
  • New! Get list of Fonts available in the client system.
  • New! Get list of Serial/COM ports available in the client system.
  • New! Scan documents and images from TWAIN/WIA/SANE-compatible scanner devices specifying DPI/resolution, Pixel Mode (Grayscale, Color) and the desired output image format (JPEG/JPG, PNG).
  • New! Get list of scanner devices available in the client system.
  • New! Bidirectional (BIDI) Serial Port (RS-232, COM & TTY) Communication support.
  • New! PrintFileTXT now supports sources from files, URL, BLOB, and Base64.
  • BREAKING CHANGES
    • 32-bit JSPM Client App for Mac and Linux are no longer supported. Only 64-bit macOS and Linux are supported. -Serial Port Data Bits is now an enumeration called JSPM.Serial.DataBits
    • JSPM.WSStatus.Blacklisted renamed to JSPM.WSStatus.Blocked

3.0.1

  • Fixed! Support for IE11.

3.0.2

  • Fixed! license_url setting throws an error if websocket was not open.

3.0.3

  • Fixed! license_url setting throws "Uncaught TypeError: Cannot read property 'status' of undefined."

3.0.4

  • Fixed! Malformed message - Invalid License
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft