Jump to content

Print.JS sample


molla2005b

Recommended Posts

A tiny javascript library to help printing from the web
Ctrl+P  ===> Open Print Dialog ===> Press Enter To Print or Esc to Cancel
 

Print.js was primarily written to help us print PDF files directly within our apps, without leaving the interface, and no use of embeds. For unique situations where there is no need for users to open or download the PDF files, and instead, they just need to print them.

One scenario where this is useful, for example, is when users request to print reports that are generated on the server side. These reports are sent back as PDF files. There is no need to open these files before printing them. Print.js offers a quick way to print these files within our apps.

Official Demo : https://printjs.crabbly.com/

 

There are four print document types available: 'pdf', 'html', 'image' and 'json'.

The default type is 'pdf'.

 

 

PDFViewer - PrintJS.rar

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...