/** * Sets the alternative information for the image. * * @param alt * the alternative information */ public void setAlt(final String alt) { this.alt = alt; setAccessibleAttribute(PdfName.ALT, new PdfString(alt)); }
/** * Sets the alternative information for the image. * * @param alt * the alternative information */ public void setAlt(final String alt) { this.alt = alt; setAccessibleAttribute(PdfName.ALT, new PdfString(alt)); }
public void setAccessibleAttribute(final PdfName key, final PdfObject value) { if (getImage() != null) { getImage().setAccessibleAttribute(key, value); } else { if (accessibleAttributes == null) accessibleAttributes = new HashMap<PdfName, PdfObject>(); accessibleAttributes.put(key, value); } }
public void setAccessibleAttribute(final PdfName key, final PdfObject value) { if (getImage() != null) { getImage().setAccessibleAttribute(key, value); } else { if (accessibleAttributes == null) accessibleAttributes = new HashMap<PdfName, PdfObject>(); accessibleAttributes.put(key, value); } }
top = (float)dst[i].getY(); image.setAccessibleAttribute(PdfName.BBOX, new PdfArray(new float[] {left, bottom, right, top}));
top = (float)dst[i].getY(); image.setAccessibleAttribute(PdfName.BBOX, new PdfArray(new float[] {left, bottom, right, top}));