/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> protected void OnLayoutCompleted(PdfLayout sender, LayoutEventArgs args) { if (this.LayoutCompleted != null) { this.LayoutCompleted(sender, args); } }
public PdfLayout BeginLayout() { var retval = new PdfLayout(DEFAULT_FONT, optCfg.FontSize.Value); retval.LayoutCompleted += new EventHandler <PdfLayout.LayoutEventArgs>(LayoutCompleted); this.layoutInstances.Add(retval, new object()); #region Questo perchè se il documento non ha pagine (non c'è nessuna tabella da scrivere), iText dà eccezione. this.canvas.BeginText(); this.canvas.EndText(); #endregion return(retval); }