alexa

    Show / Hide Table of Contents

    Class PdfLoadedRedactionAnnotation

    Represents the PdfLoadedRedactionAnnotation.

    Inheritance
    System.Object
    PdfAnnotation
    PdfLoadedAnnotation
    PdfLoadedStyledAnnotation
    PdfLoadedRedactionAnnotation
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PdfAnnotation.CalculateBounds(RectangleF, PdfPage, PdfLoadedPage)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean, PdfGraphics)
    PdfAnnotation.FlattenPopUps
    PdfAnnotation.Initialize()
    PdfAnnotation.Layer
    PdfAnnotation.PdfTag
    PdfAnnotation.PropertyChanged
    PdfAnnotation.Rotate
    PdfAnnotation.SetAppearance(Boolean)
    PdfLoadedAnnotation.CreationDate
    PdfLoadedAnnotation.GetValues(String)
    PdfLoadedAnnotation.ObjectID
    PdfLoadedAnnotation.Page
    PdfLoadedAnnotation.SetText(String)
    PdfLoadedAnnotation.SetValues(String, String)
    PdfLoadedAnnotation.TryGetValue(String, Object)
    PdfLoadedAnnotation.Type
    PdfLoadedStyledAnnotation.AnnotationFlags
    PdfLoadedStyledAnnotation.Author
    PdfLoadedStyledAnnotation.Bounds
    PdfLoadedStyledAnnotation.CheckFlatten()
    PdfLoadedStyledAnnotation.Color
    PdfLoadedStyledAnnotation.FlattenAnnotationTemplate(PdfTemplate, Boolean)
    PdfLoadedStyledAnnotation.InnerColor
    PdfLoadedStyledAnnotation.Location
    PdfLoadedStyledAnnotation.ModifiedDate
    PdfLoadedStyledAnnotation.Name
    PdfLoadedStyledAnnotation.Opacity
    PdfLoadedStyledAnnotation.Size
    PdfLoadedStyledAnnotation.Subject
    PdfLoadedStyledAnnotation.Text
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedRedactionAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged
    Examples
    // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right; 
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Properties

    AppearanceFillColor

    Get or set the appearance fill color of the redaction annotation.

    Declaration
    public PdfColor AppearanceFillColor { get; set; }
    Property Value
    Type Description
    PdfColor

    Returns a PdfColor representing the fill color used for the appearance of the redaction annotation.

    Examples

    ///

    PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    annot.InnerColor = Color.Aqua;
    //set the bordercolor
    annot.BorderColor = Color.Orange;
    //set the textcolor
    annot.TextColor = Color.Yellow;
    //set the appearancefillcolor
    annot.AppearanceFillColor = Color.HotPink;
    //set the font
    annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    annot.OverlayText = "Redact";
    //set textalignment
    annot.TextAlignment = PdfTextAlignment.Right;
    annot.Repeat = true;
    //Saves the document to disk.
    document.Save("redact.pdf");
    document.Close(true);
    Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    annot.InnerColor = Color.Aqua
    //set the bordercolor
    annot.BorderColor = Color.Orange
    //set the textcolor
    annot.TextColor = Color.Yellow
    //set the appearancefillcolor
    annot.AppearanceFillColor = Color.HotPink
    //set the font
    annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    annot.OverlayText = "Redact"
    //set the textalignment
    annot.TextAlignment = PdfTextAlignment.Right
    annot.Repeat = True
    document.Save("redact.pdf")
    document.Close(True)

    Border

    Get or set the border of redaction annotation

    Declaration
    public LineBorder Border { get; set; }
    Property Value
    Type
    LineBorder
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    BorderColor

    Get or set the bordercolor of redaction annotation

    Declaration
    public PdfColor BorderColor { get; set; }
    Property Value
    Type
    PdfColor
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    BoundsCollection

    Gets or sets bound collection of redaction annotation.

    Declaration
    public List<RectangleF> BoundsCollection { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.Drawing.RectangleF>
    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //set the bounds
    List<RectangleF> bounds = new List<RectangleF>();
    bounds.Add(new RectangleF(100, 100, 50, 20));
    bounds.Add(new RectangleF(200, 150, 60, 25));
    annot.BoundsCollection = bounds;
    //set the inner color
    annot.InnerColor = Color.Black;
    //set the border color
    annot.BorderColor = Color.Green;
    //set the text color
    annot.TextColor = Color.Yellow;
    //set the font
    annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlay text
    annot.OverlayText = "Redact";
    //set text alignment
    annot.TextAlignment = PdfTextAlignment.Center;
    annot.RepeatText = true;
    //Saves the document to disk.
    document.Save("RedactionWithQuadPoints.pdf");
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfLoadedRedactionAnnotation
    Dim annot As PdfLoadedRedactionAnnotation = document.Pages(0).Annotations(0)
    'set the bounds
    Dim bounds As List(Of RectangleF) = New List(Of RectangleF)()
    bounds.Add(New RectangleF(100, 100, 50, 20))
    bounds.Add(New RectangleF(200, 150, 60, 25))
    annot.BoundsCollection = bounds
    'set the inner color
    annot.InnerColor = Color.Black
    'set the border color
    annot.BorderColor = Color.Green
    'set the text color
    annot.TextColor = Color.Yellow
    'set the font
    annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    'set overlay text
    annot.OverlayText = "Redact"
    'set text alignment
    annot.TextAlignment = PdfTextAlignment.Center
    annot.RepeatText = True
    'Saves the document to disk.
    document.Save("RedactionWithQuadPoints.pdf")
    document.Close(True)

    Comments

    Gets the annotation Comments history.

    Declaration
    public PdfLoadedPopupAnnotationCollection Comments { get; }
    Property Value
    Type Description
    PdfLoadedPopupAnnotationCollection

    Returns a PdfPopupAnnotationCollection containing the comments associated with the annotation.

    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfRedactionAnnotation
    PdfLoadedRedactionAnnotation  redact = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the Comments collection
    PdfLoadedPopupAnnotationCollection CommentsCollection = redact.Comments;
    //save the document
    document.Save("PdfRedactionAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfLoadedRedactionAnnotation
    Dim redact As PdfLoadedRedactionAnnotation = document.Pages(0).Annotations(0)
    'Get the Comments collection
    Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = redact.Comments
    'save the document
    document.Save("PdfRedactionAnnotation.pdf")
    'Close the document.
    document.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedPage

    Flatten

    Get or set the flatten

    Declaration
    public bool Flatten { get; set; }
    Property Value
    Type
    System.Boolean
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //annot.Flatten=true
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //annot.Flatten=true;
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Font

    Get or set the font of redaction annotation

    Declaration
    public PdfFont Font { get; set; }
    Property Value
    Type
    PdfFont
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    OverlayText

    Get or set the overlaytext of redaction annotation

    Declaration
    public string OverlayText { get; set; }
    Property Value
    Type
    System.String
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    RepeatText

    Get or set repeat text of redaction annotation

    Declaration
    public bool RepeatText { get; set; }
    Property Value
    Type
    System.Boolean
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    ReviewHistory

    Gets the annotation review history.

    Declaration
    public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
    Property Value
    Type Description
    PdfLoadedPopupAnnotationCollection

    Returns a PdfPopupAnnotationCollection containing the reviews associated with the annotation.

    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    PdfLoadedRedactionAnnotation redact = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the review collection
    PdfLoadedPopupAnnotationCollection reviewCollection = rubber.ReviewHistory;
    //save the document
    document.Save("PdfRedactionAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfLoadedRedactionAnnotation
    Dim redact As PdfLoadedRedactionAnnotation = document.Pages(0).Annotations(0)
    'Get the review collection
    Dim reviewCollection As PdfLoadedPopupAnnotationCollection = redact.ReviewHistory
    'save the document
    document.Save("PdfRedactionAnnotation.pdf")
    'Close the document.
    document.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedPage

    TextAlignment

    Get or set the text alignment of redaction annotation

    Declaration
    public PdfTextAlignment TextAlignment { get; set; }
    Property Value
    Type
    PdfTextAlignment
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    TextColor

    Get or set the textcolor of redaction annotation

    Declaration
    public PdfColor TextColor { get; set; }
    Property Value
    Type
    PdfColor
    Examples
    // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right; 
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Methods

    Save()

    Saves an annotation.

    Declaration
    protected override void Save()
    Overrides
    PdfAnnotation.Save()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX