cb.addTemplate(tp, offsetX, offsetY);
/** * Adds a template to this content. * * @param template the template * @param x the x location of this template * @param y the y location of this template */ public void addTemplate(final PdfTemplate template, final float x, final float y) { addTemplate(template, 1, 0, 0, 1, x, y); }
/** * adds a template with the given matrix. * @param template template to add * @param transform transform to apply to the template prior to adding it. */ public void addTemplate(final PdfTemplate template, final AffineTransform transform) { addTemplate(template, transform, false); }
/** * Adds a template to this content. * * @param template the template * @param x the x location of this template * @param y the y location of this template */ public void addTemplate(final PdfTemplate template, final double x, final double y) { addTemplate(template, 1, 0, 0, 1, x, y); }
/** * adds a template with the given matrix. * @param template template to add * @param transform transform to apply to the template prior to adding it. */ public void addTemplate(final PdfTemplate template, final AffineTransform transform) { addTemplate(template, transform, false); }
/** * Adds a template to this content. * * @param template the template * @param x the x location of this template * @param y the y location of this template */ public void addTemplate(final PdfTemplate template, final double x, final double y) { addTemplate(template, 1, 0, 0, 1, x, y); }
/** * Adds a template to this content. * * @param template the template * @param x the x location of this template * @param y the y location of this template */ public void addTemplate(final PdfTemplate template, final float x, final float y) { addTemplate(template, 1, 0, 0, 1, x, y); }
/** * Adds a template to this content. * * @param template the template * @param a an element of the transformation matrix * @param b an element of the transformation matrix * @param c an element of the transformation matrix * @param d an element of the transformation matrix * @param e an element of the transformation matrix * @param f an element of the transformation matrix */ public void addTemplate(final PdfTemplate template, final double a, final double b, final double c, final double d, final double e, final double f) { addTemplate(template, a, b, c, d, e, f, false); }
public void addTemplate(final PdfTemplate template, final float x, final float y, boolean tagContent) { addTemplate(template, 1, 0, 0, 1, x, y, tagContent); }
/** * Adds a template to this content. * * @param template the template * @param a an element of the transformation matrix * @param b an element of the transformation matrix * @param c an element of the transformation matrix * @param d an element of the transformation matrix * @param e an element of the transformation matrix * @param f an element of the transformation matrix */ public void addTemplate(final PdfTemplate template, final float a, final float b, final float c, final float d, final float e, final float f) { addTemplate(template, a, b, c, d, e, f, false); }
public void addTemplate(final PdfTemplate template, final double x, final double y, boolean tagContent) { addTemplate(template, 1, 0, 0, 1, x, y, tagContent); }
/** * Adds a template to this content. * * @param template the template * @param a an element of the transformation matrix * @param b an element of the transformation matrix * @param c an element of the transformation matrix * @param d an element of the transformation matrix * @param e an element of the transformation matrix * @param f an element of the transformation matrix * @param tagContent <code>true</code> - template content will be tagged(all that will be added after), <code>false</code> - only a Do operator will be tagged. * taken into account only if <code>isTagged()</code> - <code>true</code>. */ public void addTemplate(final PdfTemplate template, final float a, final float b, final float c, final float d, final float e, final float f, boolean tagContent) { addTemplate(template, (double)a, (double)b, (double)c, (double)d, (double)e, (double)f, tagContent); }
/** * Adds a template to this content. * * @param template the template * @param a an element of the transformation matrix * @param b an element of the transformation matrix * @param c an element of the transformation matrix * @param d an element of the transformation matrix * @param e an element of the transformation matrix * @param f an element of the transformation matrix */ public void addTemplate(final PdfTemplate template, final float a, final float b, final float c, final float d, final float e, final float f) { addTemplate(template, a, b, c, d, e, f, false); }
/** * Adds a template to this content. * * @param template the template * @param a an element of the transformation matrix * @param b an element of the transformation matrix * @param c an element of the transformation matrix * @param d an element of the transformation matrix * @param e an element of the transformation matrix * @param f an element of the transformation matrix */ public void addTemplate(final PdfTemplate template, final double a, final double b, final double c, final double d, final double e, final double f) { addTemplate(template, a, b, c, d, e, f, false); }
public void addTemplate(final PdfTemplate template, final float x, final float y, boolean tagContent) { addTemplate(template, 1, 0, 0, 1, x, y, tagContent); }
@Override public void endFeature(long id, ResultSet rs) { cb.addTemplate(pTemp, lx, ly); cb.endMarkedContentSequence(); }
/** * adds a template with the given matrix. * @param template template to add * @param transform transform to apply to the template prior to adding it. * @param tagContent <code>true</code> - template content will be tagged(all that will be added after), <code>false</code> - only a Do operator will be tagged. * taken into account only if <code>isTagged()</code> - <code>true</code>. */ public void addTemplate(final PdfTemplate template, final AffineTransform transform, boolean tagContent) { double matrix[] = new double[6]; transform.getMatrix(matrix); addTemplate(template, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], tagContent); }
/** * adds a template with the given matrix. * @param template template to add * @param transform transform to apply to the template prior to adding it. * @param tagContent <code>true</code> - template content will be tagged(all that will be added after), <code>false</code> - only a Do operator will be tagged. * taken into account only if <code>isTagged()</code> - <code>true</code>. */ public void addTemplate(final PdfTemplate template, final AffineTransform transform, boolean tagContent) { double matrix[] = new double[6]; transform.getMatrix(matrix); addTemplate(template, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], tagContent); }
/** * adds a template with the given matrix. * @param template template to add * @param transform transform to apply to the template prior to adding it. * @deprecated use com.itextpdf.text.geom.AffineTransform as parameter */ public void addTemplate(final PdfTemplate template, final java.awt.geom.AffineTransform transform) { double matrix[] = new double[6]; transform.getMatrix(matrix); addTemplate(template, new AffineTransform(matrix)); }
public static void stampBackground(PdfReader reader, PdfStamper stamper, String signature, boolean isStamp) throws IOException, DocumentException { int num_pages = reader.getNumberOfPages(); PdfReader r = new PdfReader(signature); PdfImportedPage page = stamper.getImportedPage(r, 1); for (int i = 1; i <= num_pages; i++) { PdfContentByte canvas = isStamp ? stamper.getOverContent(i) : stamper.getUnderContent(i); canvas.addTemplate(page, 0, 0); } stamper.getWriter().freeReader(r); } }