Exemple #1
0
 /**
  * <summary>Creates a new text markup on the specified page, making it printable by default.
  * </summary>
  * <param name="page">Page to annotate.</param>
  * <param name="markupBoxes">Quadrilaterals encompassing a word or group of contiguous words in
  * the text underlying the annotation.</param>
  * <param name="text">Annotation text.</param>
  * <param name="markupType">Markup type.</param>
  */
 public TextMarkup(Page page, IList <Quad> markupBoxes, string text, TextMarkupType markupType)
     : base(page, ToCode(markupType), markupBoxes[0].GetBounds(), text)
 {
     MarkupType  = markupType;
     MarkupBoxes = markupBoxes;
     Printable   = true;
 }
Exemple #2
0
 /**
  * <summary>Gets the code corresponding to the given value.</summary>
  */
 private static PdfName ToCode(TextMarkupType value)
 {
     return(MarkupTypeEnumCodes[value]);
 }
Exemple #3
0
 /**
  * <summary>Creates a new text markup on the specified page, making it printable by default.
  * </summary>
  * <param name="page">Page to annotate.</param>
  * <param name="markupBox">Quadrilateral encompassing a word or group of contiguous words in the
  * text underlying the annotation.</param>
  * <param name="text">Annotation text.</param>
  * <param name="markupType">Markup type.</param>
  */
 public TextMarkup(Page page, Quad markupBox, string text, TextMarkupType markupType)
     : this(page, new List <Quad>() { markupBox }, text, markupType)
 {
 }