public void AddTextAreaNote(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoItalique, this.referenceFontSize, TextAlign.Left, this.referenceColor); _currentPage.Elements.Add(label); }
public void AddOrangeTitle(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLight, this.subtitleFontSize, TextAlign.Left, this.MarkerColor); _currentPage.Elements.Add(label); }
public void AddReferenceWithZone(String text, ref float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLight, this.referenceFontSize, TextAlign.Justify, this.referenceColor); _currentPage.Elements.Add(label); // y += label.Height; }
public void AddReceuil_ChapterTitle_Center_CalibriBoldItalic_LabelPage(String text, Page p, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBoldItalique, 15, TextAlign.Center, pdfColorBlue); p.Elements.Add(label); }
public void AddDynamicBlueBorderWithText(String text, ref float y, float x = 0, float width = 510, float height = 65) { const int MAX_WIDTH = 493; float HEIGHT_LBL = 20; if (string.IsNullOrEmpty(text)) text = string.Empty; float iHeight = 0; WordWrap(text, MAX_WIDTH, out iHeight); if (iHeight > HEIGHT_LBL) { HEIGHT_LBL = iHeight; } var label = new Foxit.PDF.PageElements.Label(text, x +10, y + 10, (width - 10), HEIGHT_LBL, this.RobotoLight, this.defaultFontSize, TextAlign.Left, this.defaultColor); _currentPage.Elements.Add(label); if (iHeight > height) { height = iHeight; height = (height*31)/50; height += 10; } var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height, this.lineColor, 1.3f); _currentPage.Elements.Add(rectangle); y += height; }
public void AddJustifyTextWithAutomaticNewPage(String text, ref float y, float width = 500, float height = 20, float x = 0) { const float heightRef = 40; if (y > 0) { float pixelRestant = DEFAULT_PAGE_SIZE - (y + height); if (pixelRestant < heightRef) { CreatePage(); y = 0; } } if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLight, this.defaultFontSize, TextAlign.Justify, this.defaultColor); _currentPage.Elements.Add(label); }
public void AddItalicJustifyText(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoItalique, this.defaultFontSize, TextAlign.Justify, this.defaultColor); _currentPage.Elements.Add(label); }
public void AddReceuil_DetailText_Justify_CalibriItalic_Label(String text, float y, float width = 500, float height = 20, float x = 0, float fontSize = 8) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaItalique, fontSize, TextAlign.Justify, RgbColor.Black); _currentPage.Elements.Add(label); }
public void AddReceuil_DetailText_Left_Arial_LabelPage(String text, Page page, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, Font.Helvetica, 7, TextAlign.Left, RgbColor.Black); page.Elements.Add(label); label = null; }
public void AddReceuil_DetailText_Justify_CalibriBoldItalic_LabelPage(String text, Page page, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBoldItalique, 8, TextAlign.Justify, RgbColor.Black); page.Elements.Add(label); label = null; }
public void AddReceuil_DetailText_Center_Calibri_Label(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.Heveltica, 8, TextAlign.Center, RgbColor.Black); _currentPage.Elements.Add(label); label = null; }
public void Add_SubTitle_Center_CalibriBold_Label(String text, float y, Page p, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBold, 10, TextAlign.Center, RgbColor.Black); p.Elements.Add(label); }
public void AddReceuil_SubTitle_Right_CalibriBold_Label(String text, float y, float width, float height, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBold, 9, TextAlign.Right, RgbColor.Black); _currentPage.Elements.Add(label); }
public void AddReceuil_ChapterSubTitle_Left_CalibriBold_Label(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBold, 11, TextAlign.Left, pdfColorBlue); _currentPage.Elements.Add(label); }
public void AddGraphText(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLightBold, 8, TextAlign.Center, RgbColor.Black); label.Angle = 25; _currentPage.Elements.Add(label); }
public void AddReceuil_DefaultText_Justify_CalibriUnderline_Label(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.Heveltica, 10, TextAlign.Justify, RgbColor.Black); label.Underline = true; _currentPage.Elements.Add(label); }
public void AddDefaultBoldTextPage(String text, Page p, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLightBold, this.defaultFontSize, TextAlign.Left, this.defaultColor); p.Elements.Add(label); }
public void AddReceuil_DefaultText_Justify_CalibriBold_Blue_Label(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBold, 10, TextAlign.Justify, pdfColorBlue); _currentPage.Elements.Add(label); }
public void AddWhiteTitleLeftPage(String text, Page p, float y, float width = 500, float height = 20, float x = 0, float fontsize = 10) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLight, fontsize, TextAlign.Left, RgbColor.White); p.Elements.Add(label); }
public void LAB_AddChapterTitle_Calibri(string text, float x, float y, float width, float height) { var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.Heveltica, 12, TextAlign.Left, pdfColorBlue); _currentPage.Elements.Add(label); }
public void AddText10(String text, float y, float width = 500, float height = 20, float x = 0) { if (string.IsNullOrEmpty(text)) text = string.Empty; var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.RobotoLight, 10, TextAlign.Left, this.defaultColor); _currentPage.Elements.Add(label); }
public void Add_Title_Center_CalibriBold_Label(String text, float y, Page page, float width = 500, float height = 20, float x = 0) { var label = new Foxit.PDF.PageElements.Label(text, x, y, width, height, this.HevelticaBold, 19, TextAlign.Center, pdfColorBlue); page.Elements.Add(label); }