Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfContentByte.createGraphics()


    PdfContentByte cb = writer.getDirectContent();
    Rectangle pagesize = document.getPageSize();
    float w = pagesize.getWidth();
    float h = pagesize.getHeight();

    Graphics2D g2 = cb.createGraphics(w, h);
    g2.setFont(new java.awt.Font("Arial", 0, 6));
    g2.setColor(new java.awt.Color(96, 96, 96));
    String produced =
      "(produced by " + Statics.shortProducer + " " + Statics.currentYear + ", #" + documentNumber + ", " + person0Name
        + ")";
View Full Code Here


      PdfContentByte cb = writer.getDirectContent();
      cb.saveState();
      cb.concatCTM(1.0f, 0, 0, 1.0f, 36, 0);
      float width = document.getPageSize().getWidth() - 20;
      float height = document.getPageSize().getHeight() - 20;
      Graphics2D g2 = cb.createGraphics(width, height);
      //g2.rotate(Math.toRadians(-90), 100, 100);
      PrintTranscoder prm = new PrintTranscoder();
      TranscoderInput ti = new TranscoderInput(new StringReader(t));
      prm.transcode(ti, null);
      PageFormat pg = new PageFormat();
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.