コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: PdfDocument.cs プロジェクト: bmictech/iTextSharp
 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++;
 }
コード例 #3
0
ファイル: PdfDocument.cs プロジェクト: bmictech/iTextSharp
 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;
 }
コード例 #4
0
ファイル: PdfDocument.cs プロジェクト: hjgode/iTextSharpCF
 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);
 }