/// <summary>An associated pop-up annotation for entering or editing the text associated with this annotation. /// </summary> /// <remarks> /// An associated pop-up annotation for entering or editing the text associated with this annotation. /// Pop-up annotation defines an associated with this annotation pop-up window that may contain text. /// The Contents (see /// <see cref="PdfAnnotation.GetContents()"/> /// ) entry of the annotation that has /// an associated popup specifies the text that shall be displayed when the pop-up window is opened. /// </remarks> /// <returns> /// an /// <see cref="PdfPopupAnnotation"/> /// that is associated with this annotation, or null if there is none. /// </returns> public virtual PdfPopupAnnotation GetPopup() { if (popup == null) { PdfDictionary popupObject = GetPopupObject(); if (popupObject != null) { PdfAnnotation annotation = MakeAnnotation(popupObject); if (!(annotation is PdfPopupAnnotation)) { ILog logger = LogManager.GetLogger(typeof(iText.Kernel.Pdf.Annot.PdfMarkupAnnotation)); logger.Warn(iText.IO.LogMessageConstant.POPUP_ENTRY_IS_NOT_POPUP_ANNOTATION); return(null); } popup = (PdfPopupAnnotation)annotation; } } return(popup); }
/// <summary> /// Sets an annotation that this annotation is "in reply to." /// Both annotations shall be on the same page of the document. /// </summary> /// <remarks> /// Sets an annotation that this annotation is "in reply to." /// Both annotations shall be on the same page of the document. /// The relationship between the two annotations shall be specified by the RT entry /// (see /// <see cref="GetReplyType()"/> /// ). /// </remarks> /// <param name="inReplyTo"> /// a /// <see cref="PdfAnnotation"/> /// that this annotation is "in reply to." /// </param> /// <returns> /// this /// <see cref="PdfMarkupAnnotation"/> /// instance. /// </returns> public virtual iText.Kernel.Pdf.Annot.PdfMarkupAnnotation SetInReplyTo(PdfAnnotation inReplyTo) { this.inReplyTo = inReplyTo; return((iText.Kernel.Pdf.Annot.PdfMarkupAnnotation)Put(PdfName.IRT, inReplyTo.GetPdfObject())); }
public virtual iText.Kernel.Pdf.Annot.PdfPopupAnnotation SetParent(PdfAnnotation parent) { this.parent = parent; return((iText.Kernel.Pdf.Annot.PdfPopupAnnotation)Put(PdfName.Parent, parent.GetPdfObject())); }