Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfContentByte.lineTo()


                cb.showTextAligned(LwgElement.ALIGN_CENTER, title, 385f, 262f, 270f);
              }
              cb.endText();
            }
            cb.moveTo(370, 0);
            cb.lineTo(370, 525);
            cb.moveTo(410, 525);
            cb.lineTo(410, 0);
            cb.stroke();
            if (front != null) {
              front.scaleToFit(370, 525);
View Full Code Here


              cb.endText();
            }
            cb.moveTo(370, 0);
            cb.lineTo(370, 525);
            cb.moveTo(410, 525);
            cb.lineTo(410, 0);
            cb.stroke();
            if (front != null) {
              front.scaleToFit(370, 525);
              front.setAbsolutePosition(410f + (370f - front.getScaledWidth()) / 2f, (525f - front.getScaledHeight()) / 2f);
              document.add(front);
View Full Code Here

                    cb.setAction(new PdfAction("http://www.lowagie.com/iText/"),
                        widths[col], heights[line + 1], widths[col + 1], heights[line]);
                cb.setRGBColorStrokeF((float)Math.random(), (float)Math.random(), (float)Math.random());
                // horizontal borderline
                cb.moveTo(widths[col], heights[line]);
                cb.lineTo(widths[col + 1], heights[line]);
                cb.stroke();
                // vertical borderline
                cb.setRGBColorStrokeF((float)Math.random(), (float)Math.random(), (float)Math.random());
                cb.moveTo(widths[col], heights[line]);
                cb.lineTo(widths[col], heights[line + 1]);
View Full Code Here

                cb.lineTo(widths[col + 1], heights[line]);
                cb.stroke();
                // vertical borderline
                cb.setRGBColorStrokeF((float)Math.random(), (float)Math.random(), (float)Math.random());
                cb.moveTo(widths[col], heights[line]);
                cb.lineTo(widths[col], heights[line + 1]);
                cb.stroke();
            }
        }
        cb.restoreState();
    }
View Full Code Here

   */
  public void cellLayout(LwgPdfPCell cell, LwgRectangle position,
      PdfContentByte[] canvases) {
    PdfContentByte cb = canvases[LwgPdfPTable.TEXTCANVAS];
    cb.moveTo(position.getLeft(), position.getBottom());
    cb.lineTo(position.getRight(), position.getTop());
    cb.stroke();
  }

  /**
   * General example using cell events.
View Full Code Here

         PdfContentByte cb = writer.getDirectContent();

         // first we draw some lines to be able to visualize the text alignment functions
         cb.setLineWidth(0f);
         cb.moveTo(250, 500);
         cb.lineTo(250, 800);
         cb.moveTo(50, 700);
         cb.lineTo(400, 700);
         cb.moveTo(50, 650);
         cb.lineTo(400, 650);
         cb.moveTo(50, 600);
View Full Code Here

         // first we draw some lines to be able to visualize the text alignment functions
         cb.setLineWidth(0f);
         cb.moveTo(250, 500);
         cb.lineTo(250, 800);
         cb.moveTo(50, 700);
         cb.lineTo(400, 700);
         cb.moveTo(50, 650);
         cb.lineTo(400, 650);
         cb.moveTo(50, 600);
         cb.lineTo(400, 600);
         cb.stroke();
View Full Code Here

         cb.moveTo(250, 500);
         cb.lineTo(250, 800);
         cb.moveTo(50, 700);
         cb.lineTo(400, 700);
         cb.moveTo(50, 650);
         cb.lineTo(400, 650);
         cb.moveTo(50, 600);
         cb.lineTo(400, 600);
         cb.stroke();

         // we construct a font
View Full Code Here

         cb.moveTo(50, 700);
         cb.lineTo(400, 700);
         cb.moveTo(50, 650);
         cb.lineTo(400, 650);
         cb.moveTo(50, 600);
         cb.lineTo(400, 600);
         cb.stroke();

         // we construct a font
         //BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\arialuni.ttf", BaseFont.IDENTITY_H, true);
         BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\comic.ttf", BaseFont.IDENTITY_H, true);
View Full Code Here

                    cb.setAction(new PdfAction("http://www.lowagie.com/iText/"),
                        widths[col], heights[line + 1], widths[col + 1], heights[line]);
                cb.setRGBColorStrokeF((float)Math.random(), (float)Math.random(), (float)Math.random());
                // horizontal borderline
                cb.moveTo(widths[col], heights[line]);
                cb.lineTo(widths[col + 1], heights[line]);
                cb.stroke();
                // vertical borderline
                cb.setRGBColorStrokeF((float)Math.random(), (float)Math.random(), (float)Math.random());
                cb.moveTo(widths[col], heights[line]);
                cb.lineTo(widths[col], heights[line + 1]);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.