Silent printing (direct) using KIOSK mode in Google Chrome


I am developing an application which generates pdf using ITextSharp and need to print silently or directly. My work flow is Like this, I have some forms listed in tree structure and on selecting the forms and click on the print button will automatically generate the pdf using Itextsharp and save to a location. this is because for multiple record we download it as zip file . And goes to print without opening any other windows. I am using google chrome as browser and uses the KIOSK mode.

But unfortunately when i execute the code the print preview will open up in my browser and i need to click on the back button to reach my page. I want this to be cleared. Also i need to clear the selection of the tree structure.<br />

Hereby attaching the code while printing.<br />

MemoryStream ms = new MemoryStream(); var urlPdf = Server.MapPath("~/Pdf/pdfMerge/" + id + "Merge_doc.pdf"); PdfReader ps = new PdfReader(urlPdf);//1 PdfStamper pdf = new PdfStamper(ps, ms);//2 pdf.JavaScript = "this.print({bUI: true,bSilent:false,bShrinkToFit: true});" + "\r\n" + "this.closeDoc();";//3 pdf.Close();//4 HttpContext.Current.Response.ClearContent();//5 HttpContext.Current.Response.ClearHeaders();//6 HttpContext.Current.Response.ContentType = "application/pdf";//7 HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=quickforms.pdf");//8 HttpContext.Current.Response.BinaryWrite(ms.ToArray());//9 ms.Flush();

Can anybody help me?



--kiosk --kiosk-printing <application_URL>

Create a new chrome.exe shortcut Add –kiosk –kiosk-printing flags to the chrome.exe target shortcut Add the url of the kiosk as the starting page in Chrome settings (or replace chrome.exe with “chrome.exe –kiosk http:// [enter URL here]”) Drag the shortcut into the startup folder so it loads automatically.

That’s it! Then when you open it’s fullscreen and locked down with the kiosk and auto printing functionality all in one! :) To quit the Kiosk, press Alt + F4 on your keyboard.


MUST USE:<br /> PRINT DIRECT: --kiosk-printing<br /> KIOSK MODE: --kiosk [application_url]<br /> KIOSK MODE & PRINT DIRECT: --kiosk-printing --kiosk [application_url]


  • Transitioning from View to View in WPF
  • How to scale a fixed-width website to an iPad viewport
  • Android “Wireless Display” Intent Action
  • HTML5 App on Windows 8 which cannot be closed
  • Through presenting new view controller viewWillDisappear on parent is triggered where I unsubscribe
  • Extract audio frames from AMR-NB file
  • JSF: weird behavior when clear inputTextArea with ajax
  • DataGrid show an empty row when DataTable is empty
  • Bootstrap ScrollSpy skips section when no more scrollable area
  • No System image available when adding AVD in Android studio
  • How to get style in Elm
  • Execute JavaScript code once a browser window/tab is opened for the first time
  • Retrieving values from a PHP Multi-dimensional Array
  • Asynchronous Sockets - Handling false socket.AcceptAsync values
  • CloseOptionsMenu doesn't work?
  • how to get data attributes of dynamically generated element
  • Flash radiobutton: how do I get the selected radiobutton?
  • Getting media player state in windows phone 7
  • How can I restyle a word when rendering a pdf with pdf.js?
  • what makes a request a new request in asp.net C#
  • SAVE attribute needed for Fortran variables when only the C_LOC address is returned to a C program?
  • Conversion from string “a” to type 'Boolean' is not valid
  • System.InvalidCastException: Specified cast is not valid
  • Assign variable to the value in HTML
  • Textfile Structure (tables)
  • How do I get HTML corresponding to current DOM tree?
  • How to use carriage return with multiple line?
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • Read a local file using javascript
  • Azure Cloud Service Web Role web pages do not load
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Perl system calls when running as another user using sudo
  • htaccess rewriting URLs with multiple forward slashes
  • How to show dropdown in excel using jrxml (jasper api)?
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • Data Validation Drop Down Box Arrow Disappearing
  • A cron job substitute?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)