public void addAnnotation(final PdfAnnotation annot, boolean applyCTM) { if (applyCTM && state.CTM.getType() != AffineTransform.TYPE_IDENTITY) { annot.applyCTM(state.CTM); } addAnnotation(annot); }
public void addAnnotation(final PdfAnnotation annot, boolean applyCTM) { if (applyCTM && state.CTM.getType() != AffineTransform.TYPE_IDENTITY) { annot.applyCTM(state.CTM); } addAnnotation(annot); }
if (an == null) return; addAnnotation(an);
if (an == null) return; addAnnotation(an);
annot = writer.createAnnotation(xMarker, yMarker + descender + chunk.getTextRise(), xMarker + width - subtract, yMarker + ascender + chunk.getTextRise(), (PdfAction)chunk.getAttribute(Chunk.ACTION), null); text.addAnnotation(annot, true); if (isTagged(writer) && chunk.accessibleElement != null) { PdfStructureElement strucElem = getStructElement(chunk.accessibleElement.getId()); PdfAnnotation annot = PdfFormField.shallowDuplicate((PdfAnnotation)chunk.getAttribute(Chunk.PDFANNOTATION)); annot.put(PdfName.RECT, new PdfRectangle(xMarker, yMarker + descender, xMarker + width - subtract, yMarker + ascender)); text.addAnnotation(annot, true);
annot = writer.createAnnotation(xMarker, yMarker + descender + chunk.getTextRise(), xMarker + width - subtract, yMarker + ascender + chunk.getTextRise(), (PdfAction)chunk.getAttribute(Chunk.ACTION), null); text.addAnnotation(annot, true); if (isTagged(writer) && chunk.accessibleElement != null) { PdfStructureElement strucElem = getStructElement(chunk.accessibleElement.getId()); PdfAnnotation annot = PdfFormField.shallowDuplicate((PdfAnnotation)chunk.getAttribute(Chunk.PDFANNOTATION)); annot.put(PdfName.RECT, new PdfRectangle(xMarker, yMarker + descender, xMarker + width - subtract, yMarker + ascender)); text.addAnnotation(annot, true);