|
AddTextMarkupAnnot |
Top Previous Next |
|
[This method is new in Gnostice eDocEngine ActiveX/.NET v2.0 Professional Edition]
The AddTextMarkupAnnot method is used to add a text markup annotation to the PDF document. To add a Text Markup Annotation, create an instance of gtPDFTextMarkupAnnotX, set its properties and pass it to AddTextMarkupAnnot.
Syntax
Note: The annotation items added using this method need not be freed by the user. All the items will be freed at the end when EndDoc is called.
Parameters Item Specifies the markup annotation object to be added.
Example Code
[VC++] CgtPDFTextMarkupAnnotX TextmarkupAnnot1; TextmarkupAnnot1 = m_Engine.CreateTextMarkupAnnot(); TextmarkupAnnot1.SetContents("This Demo shows how to create a TextMarkup Annotation"); TextmarkupAnnot1.SetTitle("Polygon Annot"); TextmarkupAnnot1.SetSubject("eDocEngine Demo"); TextmarkupAnnot1.SetBorderColor(RGB(50, 147, 77)); TextmarkupAnnot1.SetTextStyle(tsSquiggly); TextmarkupAnnot1.SetQuadPoints("3,5.9,5.5,5.9,3,6.2,5.5,6.2"); m_Engine.AddTextMarkupAnnot(TextmarkupAnnot1);
[C#] gtPDFTextMarkupAnnotX TextmarkupAnnot1; TextmarkupAnnot1 = AxgtPDFEngineX1.CreateTextMarkupAnnot(); TextmarkupAnnot1.Contents = "This Demo shows how to create a TextMarkup Annotation"; TextmarkupAnnot1.Title = "Polygon Annot"; TextmarkupAnnot1.Subject = "eDocEngine Demo"; TextmarkupAnnot1.TextStyle = eDocEngineX.TxgtTextStyle.tsSquiggly; TextmarkupAnnot1.QuadPoints = "3,5.9,5.5,5.9,3,6.2,5.5,6.2"; TextmarkupAnnot1.BorderColor = (uint) ColorTranslator.ToOle(Color.DarkGray ); AxgtPDFEngineX1.AddTextMarkupAnnot(TextmarkupAnnot1);
[VB] Dim TextmarkupAnnot1 As gtPDFTextMarkupAnnotX Set TextmarkupAnnot1 = gtEngineX1.CreateTextMarkupAnnot With TextmarkupAnnot1 .Contents = "This Demo shows how to create a TextMarkup Annotation" .Title = "Polygon Annot" .Subject = "eDocEngine Demo" .TextStyle = tsSquiggly .QuadPoints = "3,5.9,5.5,5.9,3,6.2,5.5,6.2" .BorderColor = RGB(50, 147, 77) End With Call gtEngineX1.AddTextMarkupAnnot(TextmarkupAnnot1)
|