コード例 #1
0
 public void AddBlueLineWithAutomaticNewPage(ref float y, float width = 500, float height = 1.3f, float x = 0)
 {
     const float heightRef = 40;
     if (y > 0)
     {
         float pixelRestant = DEFAULT_PAGE_SIZE - (y + height);
         if (pixelRestant < heightRef)
         {
             CreatePage();
             y = 0;
         }
     }
     // var line = new Foxit.PDF.PageElements.Line(x, y, x + width, y, height, new CmykColor(0.087f, 0.041f, 0f, 0.051f), LineStyle.Solid);
     var line = new Foxit.PDF.PageElements.Line(x, y, x + width, y, height, this.lineColor, LineStyle.Solid);
     _currentPage.Elements.Add(line);
 }
コード例 #2
0
 public void AddBlueLine(float y, float width = 500, float height = 1.3f, float x = 0)
 {
     // var line = new Foxit.PDF.PageElements.Line(x, y, x + width, y, height, new CmykColor(0.087f, 0.041f, 0f, 0.051f), LineStyle.Solid);
     var line = new Foxit.PDF.PageElements.Line(x, y, x + width, y, height, this.lineColor, LineStyle.Solid);
     _currentPage.Elements.Add(line);
 }