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; }
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++; }
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; }
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); }