/** * Creates a TextMarkup annotation of the specified sub type. * * @param subType the subtype the annotation represents */ protected PDAnnotationTextMarkup(String subType) { setSubtype(subType); // Quad points are required, set an empty array setQuadPoints(new float[0]); }
/** * Creates a TextMarkup annotation of the specified sub type. * * @param subType the subtype the annotation represents */ public PDAnnotationTextMarkup(String subType) { setSubtype(subType); // Quad points are required, set and empty array setQuadPoints(new float[0]); }
/** * Creates a TextMarkup annotation of the specified sub type. * * @param subType the subtype the annotation represents */ public PDAnnotationTextMarkup(String subType) { setSubtype(subType); // Quad points are required, set and empty array setQuadPoints(new float[0]); }
quads[7] = quads[5]; // y5 txtMark.setQuadPoints(quads); txtMark.setContents("Highlighted since it's important"); annotations.add(txtMark);