Class PdfLoadedRubberStampAnnotationExtension
Represents the extension class for rubber stamp annotation.
Inheritance
System.Object
PdfLoadedRubberStampAnnotationExtension
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Imaging.Portable.dll
Syntax
public static class PdfLoadedRubberStampAnnotationExtension : Object
Examples
//Load the existing PDF file.
FileStream fileStream = new FileStream("input.pdf", FileMode.Open);
PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
//Get the existing PDF page.
PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage;
//Get the rubber stamp annotation.
PdfLoadedRubberStampAnnotation rubberStampAnnotation = lpage.Annotations[0] as PdfLoadedRubberStampAnnotation;
//Get the custom image streams.
Stream[] imageStreams = rubberStampAnnotation.GetImages();
//Close the PDF document.
ldoc.Close(true);
Methods
GetImages(PdfLoadedRubberStampAnnotation)
Returns an array of Stream objects that represent the images associated with the rubber stamp annotation.
Declaration
public static Stream[] GetImages(this PdfLoadedRubberStampAnnotation annotation)
Parameters
Type | Name | Description |
---|---|---|
PdfLoadedRubberStampAnnotation | annotation | Rubber stamp annotation to get custom images. |
Returns
Type | Description |
---|---|
System.IO.Stream[] | An array of Stream objects that represent the images associated with the rubber stamp annotation. |
Examples
//Load the existing PDF file.
FileStream fileStream = new FileStream("input.pdf", FileMode.Open);
PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
//Get the existing PDF page.
PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage;
//Get the rubber stamp annotation.
PdfLoadedRubberStampAnnotation rubberStampAnnotation = lpage.Annotations[0] as PdfLoadedRubberStampAnnotation;
//Get the custom image streams.
Stream[] imageStreams = rubberStampAnnotation.GetImages();
//Close the PDF document.
ldoc.Close(true);