public void AddWhiteBorderPage(float y, Page p, float x = 0, float width = 510, float height = 65) { var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height, RgbColor.White, 1.3f); p.Elements.Add(rectangle); }
/// <summary> /// Puce orange des titres /// </summary> /// <param name="y"></param> /// <param name="width"></param> /// <param name="height"></param> /// <param name="x"></param> public void AddOrangeMarker(float y, float x = 0) { var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, 8, 8, this.MarkerColor, this.MarkerColor); _currentPage.Elements.Add(rectangle); }
/// <summary> /// Cadre bleu des notes /// </summary> public void AddBlueBorderPage(float y, Page p, float x = 0, float width = 510, float height = 65) { var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height, this.lineColor, 1.3f); p.Elements.Add(rectangle); }
public void AddBlueBorderWithAutomaticNewPage(ref float y, float x = 0, float width = 510, float height = 65) { const float heightRef = 40; Rectangle rectangle = null; if (y > 0) { float pixelRestant = DEFAULT_PAGE_SIZE - (y + height); if (pixelRestant < heightRef) { CreatePage(); y = 0; rectangle = new Foxit.PDF.PageElements.Rectangle(x, 0, width, height, this.lineColor, 1.3f); } else { rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height, this.lineColor, 1.3f); y += height; } } else { rectangle = new Foxit.PDF.PageElements.Rectangle(x, 0, width, height, this.lineColor, 1.3f); } _currentPage.Elements.Add(rectangle); }
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 AddPinkNotesRectangle(float y, float x = 0, float width = 510, float height = 65) { var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height); rectangle.FillColor = RgbColor.LightPink; _currentPage.Elements.Add(rectangle); }
public void AddRecueil_Notes_Rectangle(float y, float x = 0, float width = 510, float height = 65) { var rectangle = new Foxit.PDF.PageElements.Rectangle(x, y, width, height); _currentPage.Elements.Add(rectangle); }