Class PdfLoadedRubberStampAnnotation
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents the loaded rubber stamp annotation class.
public class PdfLoadedRubberStampAnnotation : PdfLoadedStyledAnnotation, INotifyPropertyChanged
- Inheritance
-
PdfLoadedRubberStampAnnotation
- Implements
- Inherited Members
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Gets the annotation from loaded document.
PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation;
//Sets the rubber stamp annotation border
rubberStampAnnotation.Border.Width = 4;
rubberStampAnnotation.Border.HorizontalRadius = 20;
rubberStampAnnotation.Border.VerticalRadius = 30;
//Set the PDF rubber stamp annotation icon
rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved;
//Save the document.
document.Save("RubberStampAnnotation.pdf");
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Gets the annotation from loaded document.
Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation
'Sets the rubber stamp annotation border
rubberStampAnnotation.Border.Width = 4
rubberStampAnnotation.Border.HorizontalRadius = 20
rubberStampAnnotation.Border.VerticalRadius = 30
'Set the PDF rubber stamp annotation icon
rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved
'Save the document.
document.Save("RubberStampAnnotation.pdf")
document.Close(True)
Properties
Comments
Gets the annotation Comments history.
public PdfLoadedPopupAnnotationCollection Comments { get; }
Property Value
- PdfLoadedPopupAnnotationCollection
The Comments collection of the rubber stamp annotation.
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfRubberStampAnnotation
PdfLoadedRubberStampAnnotation rubber = document.Pages[0].Annotations[0] as PdfLoadedRubberStampAnnotation;
//Get the Comments collection
PdfLoadedPopupAnnotationCollection CommentsCollection = rubber.Comments;
//save the document
document.Save("PdfRubberStampAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfRubberStampAnnotation
Dim rubber As PdfLoadedRubberStampAnnotation = document.Pages(0).Annotations(0)
'Get the Comments collection
Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = rubber.Comments
'save the document
document.Save("PdfRubberStampAnnotation.pdf")
'Close the document.
document.Close(True)
- See Also
Icon
Gets or sets the icon of the annotation.
public PdfRubberStampAnnotationIcon Icon { get; set; }
Property Value
- PdfRubberStampAnnotationIcon
The PdfRubberStampAnnotationIcon used to set icon to the rubber stamp annotation
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Gets the annotation from loaded document.
PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation;
//Set the PDF rubber stamp annotation icon
rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved;
//Save the document.
document.Save("RubberStampAnnotation.pdf");
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Gets the annotation from loaded document.
Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation
'Set the PDF rubber stamp annotation icon
rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved
'Save the document.
document.Save("RubberStampAnnotation.pdf")
document.Close(True)
- See Also
ReviewHistory
Gets the annotation review history.
public PdfLoadedPopupAnnotationCollection ReviewHistory { get; }
Property Value
- PdfLoadedPopupAnnotationCollection
The review collection of the rubber stamp annotation.
Examples
//Load an existing document.
PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
//Load the existing PdfRubberStampAnnotation
PdfLoadedRubberStampAnnotation rubber = document.Pages[0].Annotations[0] as PdfLoadedRubberStampAnnotation;
//Get the review collection
PdfLoadedPopupAnnotationCollection reviewCollection = rubber.ReviewHistory;
//save the document
document.Save("PdfRubberStampAnnotation.pdf");
//Close the docuemnt
document.Close(true);
'Load an existing document.
Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
'Load the existing PdfRubberStampAnnotation
Dim rubber As PdfLoadedRubberStampAnnotation = document.Pages(0).Annotations(0)
'Get the review collection
Dim reviewCollection As PdfLoadedPopupAnnotationCollection = rubber.ReviewHistory
'save the document
document.Save("PdfRubberStampAnnotation.pdf")
'Close the document.
document.Close(True)
- See Also
Methods
ModifyTemplateAppearance(RectangleF)
Modify rubber stamp appearance
protected void ModifyTemplateAppearance(RectangleF bounds)
Parameters
bounds
RectangleF
- See Also
Save()
Saves an Annotation
protected override void Save()
- See Also