Exemplo n.º 1
0
 /** Adds a JavaScript action at the document level. When the document
  * opens all this JavaScript runs. The existing JavaScript will be replaced.
  * @param name the name for the JavaScript snippet in the name tree
  * @param js the JavaScript code
  */
 public virtual void AddJavaScript(String name, String js)
 {
     stamper.AddJavaScript(name, PdfAction.JavaScript(js, stamper, !PdfEncodings.IsPdfDocEncoding(js)));
 }