1 Reply Latest reply on Sep 7, 2008 12:06 AM by (Aandi_Inston)

    Silent Printing

      We are creating PDF documents via Java and iText and would like them to do a silent print (i.e with no print dialog box). We add the following javascript to the PDF document:

      PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("/home/webopt3/public_html/batesfurniturecompany/reports/customerQuoteRe port" + customerQuoteHandler.getCustomerQuoteID() + ".pdf"));
      document.open();
      writer.addJavaScript("this.print({bUI: false, bSilent: true, bShrinkToFit: true});");

      When the document is opened everything is fine however we are still receiving the following pop-up confirmation box with the message:

      "This document is trying to print. Do you want to allow this?"

      Is there anyway to have it print automatically without having this confirmation box pop up?

      Thanks in advance for your help!

      Jack