File Formats

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfTextMarkupAnnotationType

    Show / Hide Table of Contents

    Enum PdfTextMarkupAnnotationType

    Specifies the Style of the Text Markup Annotation

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfTextMarkupAnnotationType
    Examples
    //Load an existing document.
    PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
    //Gets the annotation from loaded document.
    PdfLoadedTextMarkupAnnotation textMarkupAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation;
    //Sets the pdf text markup annotation type
    textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight;
    //Save the document.
    loadedDocument.Save("Output.pdf");
    //close the document
    loadedDocument.Close(true);
    'Load an existing document.
    Dim loadedDocument As New PdfLoadedDocument("input.pdf")
    'Gets the annotation from loaded document.
    Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedTextMarkupAnnotation)
    'Sets the pdf text markup annotation type
    textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight
    'Save the document.
    loadedDocument.Save("Output.pdf")
    'close the document
    loadedDocument.Close(True)

    Fields

    Name Description
    Highlight

    The Text Markup Annotation Type is Highlight.

    Squiggly

    The Text Markup Annotation Type is Squiggly.

    StrikeOut

    The Text Markup Annotation Type is StrikeOut.

    Underline

    The Text Markup Annotation Type is Underline.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved