/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param rect * @param subtype * @return */ public PdfAnnotation createAnnotation(Rectangle rect, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, rect); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param rect * @param subtype * @return */ public PdfAnnotation createAnnotation(Rectangle rect, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, rect); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param llx * @param lly * @param urx * @param ury * @param title * @param content * @param subtype * @return */ public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfString title, PdfString content, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, llx, lly, urx, ury, title, content); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param llx * @param lly * @param urx * @param ury * @param action * @param subtype * @return */ public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfAction action, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, llx, lly, urx, ury, action); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param llx * @param lly * @param urx * @param ury * @param action * @param subtype * @return */ public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfAction action, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, llx, lly, urx, ury, action); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
/** * A wrapper around PdfAnnotation constructor. * It is recommended to use this wrapper instead of direct constructor as this is a convenient way to override PdfAnnotation construction when needed. * * @param llx * @param lly * @param urx * @param ury * @param title * @param content * @param subtype * @return */ public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfString title, PdfString content, PdfName subtype) { PdfAnnotation a = new PdfAnnotation(this, llx, lly, urx, ury, title, content); if (subtype != null) a.put(PdfName.SUBTYPE, subtype); return a; }
targetArea.setBorderWidth(0); PdfAnnotation annot = new PdfAnnotation(_writer, targetArea.getLeft(), targetArea.getBottom(), targetArea.getRight(), targetArea.getTop(), action); annot.put(PdfName.SUBTYPE, PdfName.LINK); return; PdfAnnotation annot = new PdfAnnotation(_writer, targetArea.getLeft(), targetArea.getBottom(), targetArea.getRight(), targetArea.getTop(), action); annot.put(PdfName.SUBTYPE, PdfName.LINK);