internal void AddJavaScript(String name, PdfAction js) {
     if (js.Get(PdfName.JS) == null)
         throw new ArgumentException(MessageLocalization.GetComposedMessage("only.javascript.actions.are.allowed"));
     documentLevelJS[name] = writer.AddToBody(js).IndirectReference;
 }
Esempio n. 2
0
 internal void AddJavaScript(PdfAction js)
 {
     if (js.Get(PdfName.JS) == null)
         throw new ArgumentException("Only JavaScript actions are allowed.");
     documentLevelJS[jsCounter.ToString().PadLeft(16, '0')] = writer.AddToBody(js).IndirectReference;
     jsCounter++;
 }
Esempio n. 3
0
 internal void AddJavaScript(String name, PdfAction js)
 {
     if (js.Get(PdfName.JS) == null)
         throw new ArgumentException("Only JavaScript actions are allowed.");
     documentLevelJS[name] = writer.AddToBody(js).IndirectReference;
 }
Esempio n. 4
0
 internal void AddJavaScript(PdfAction js)
 {
     if (js.Get(PdfName.JS) == null)
         throw new ArgumentException("Only JavaScript actions are allowed.");
     documentJavaScript.Add(writer.AddToBody(js).IndirectReference);
 }