Exemplo n.º 1
0
 protected void HandleScriptObject(ScriptObject item, PdfDocumentWriter writer, Context context)
 {
     if (!this.referables.ContainsKey(item.Id))
     {
         var so = new PdfScriptObject();
         so.Write(item.Content);
         var pdfRef = writer.WriteObject(so);
         SetReferenceObject(item.Id, pdfRef);
     }
 }
Exemplo n.º 2
0
 protected void HandleScript(Script item, PdfPageWriter writer, Context context)
 {
     if (!String.IsNullOrWhiteSpace(item.ScriptRef))
     {
         writer.WriteObjectRef((PdfObjectRef)GetReferenceObject(item.ScriptRef));
     }
     else
     {
         var so = new PdfScriptObject();
         so.Write(item.Content);
         writer.WriteObject(so);
     }
 }