Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery/Javascript or other way Silent Print once only

Anyone knows how to print a file without showing print preview in cross browsers, API or libraries like jQuery or javascript or else.

  • Print a content without print preview (just silent print)
  • Print once, when softcopy is printed then the softcopy is expired because I want to avoid reprint the softcopy more than one by the user for security reason, especially if that is receipt is for reimburstment.

that is simple or not?

Reason why we won't show the print preview because there is possibility that user could

  • screenshot the file then photoshop the file values
  • change the contents
  • can duplicate copy

In that way it is difficult to monitor who printed the sensitive file in online.

like image 661
光 Hikari No kun Avatar asked May 30 '15 03:05

光 Hikari No kun


1 Answers

Printing from a web page is always with user interaction. However, you can prevent the document from being displayed. Shown here is the HTML5 control from my company's XtremeDocumentStudio .NET product. http://www.gnostice.com/nl_article.asp?id=291&t=Print_without_preview_using_XtremeDocumentStudio_NETs_HTML5_document_viewer_control

Animation showing print without preview

like image 57
gn1 Avatar answered Oct 17 '22 00:10

gn1