/** * Gets the bounding height of this template. * * @return height the bounding height */ public float getHeight() { return bBox.getHeight(); }
/** * Gets the bounding height of this template. * * @return height the bounding height */ public float getHeight() { return bBox.getHeight(); }
/** * Gets the visibility status of the signature. * @return the visibility status of the signature */ public boolean isInvisible() { return rect == null || rect.getWidth() == 0 || rect.getHeight() == 0; }
/** * Gets the visibility status of the signature. * @return the visibility status of the signature */ public boolean isInvisible() { return rect == null || rect.getWidth() == 0 || rect.getHeight() == 0; }
float tableHeight=pageSize.getHeight()-paper.getTopMargin()-paper.getBottomMargin(); Map<Row, Map<Column, Cell>> cellMap=report.getRowColCellMap(); for(List<Page> pages:list){
/** * Scale the image to the dimensions of the rectangle * * @param rectangle dimensions to scale the Image */ public void scaleAbsolute(final Rectangle rectangle) { scaleAbsolute(rectangle.getWidth(), rectangle.getHeight()); }
/** * Scale the image to the dimensions of the rectangle * * @param rectangle dimensions to scale the Image */ public void scaleAbsolute(final Rectangle rectangle) { scaleAbsolute(rectangle.getWidth(), rectangle.getHeight()); }
/** * Scales the images to the dimensions of the rectangle. * * @param rectangle the dimensions to fit */ public void scaleToFit(final Rectangle rectangle) { scaleToFit(rectangle.getWidth(), rectangle.getHeight()); }
/** * Scales the images to the dimensions of the rectangle. * * @param rectangle the dimensions to fit */ public void scaleToFit(final Rectangle rectangle) { scaleToFit(rectangle.getWidth(), rectangle.getHeight()); }
public Rectangle getDocumentArtBox() { return new Rectangle( documentMargin.marginLeft, documentMargin.marginBottom, pageSize.getWidth() - documentMargin.marginRight, pageSize.getHeight() - documentMargin.marginTop); }
protected float getHeaderY( IMasterPageHeaderFooter header ) { return document.getPageSize().getHeight() - document.getOriginMarginTop(); }
private void drawTopFrame(PdfAppearance app) { app.moveTo(borderWidth, borderWidth); app.lineTo(borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(2 * borderWidth, 2 * borderWidth); app.lineTo(borderWidth, borderWidth); app.fill(); }
private void drawTopFrame(PdfAppearance app) { app.moveTo(borderWidth, borderWidth); app.lineTo(borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(2 * borderWidth, 2 * borderWidth); app.lineTo(borderWidth, borderWidth); app.fill(); }
public static void scaleToFit(Image img, Rectangle box) { float scaleWidth = box.getWidth() / img.getWidth(); float scaleHeight = box.getHeight() / img.getHeight(); float scale = Math.min(scaleHeight, scaleWidth); if (scale < 1) img.scalePercent(scale * 100f); }
public Rectangle(com.itextpdf.text.Rectangle r) { r.normalize(); setBounds(r.getLeft(), r.getBottom(), r.getWidth(), r.getHeight()); }
public Rectangle(com.itextpdf.text.Rectangle r) { r.normalize(); setBounds(r.getLeft(), r.getBottom(), r.getWidth(), r.getHeight()); }
private void drawBottomFrame(PdfAppearance app) { app.moveTo(borderWidth, borderWidth); app.lineTo(box.getWidth() - borderWidth, borderWidth); app.lineTo(box.getWidth() - borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, 2 * borderWidth); app.lineTo(2 * borderWidth, 2 * borderWidth); app.lineTo(borderWidth, borderWidth); app.fill(); } /** Gets the border width in points.
private void drawBottomFrame(PdfAppearance app) { app.moveTo(borderWidth, borderWidth); app.lineTo(box.getWidth() - borderWidth, borderWidth); app.lineTo(box.getWidth() - borderWidth, box.getHeight() - borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, box.getHeight() - 2 * borderWidth); app.lineTo(box.getWidth() - 2 * borderWidth, 2 * borderWidth); app.lineTo(2 * borderWidth, 2 * borderWidth); app.lineTo(borderWidth, borderWidth); app.fill(); } /** Gets the border width in points.