internal void AddJavaScript(PdfAction js)
{
if (js.Get(PdfName.JS) == null)
throw new ArgumentException(MessageLocalization.GetComposedMessage("only.javascript.actions.are.allowed"));
documentLevelJS[jsCounter.ToString().PadLeft(16, '0')] = writer.AddToBody(js).IndirectReference;
jsCounter++;
}