Platforms to show: All Mac Windows Linux Cross-Platform

PDFAnnotationStampMBS class

Super class: PDFAnnotationMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class PDFKit MBS MacControls Plugin 9.6 Yes No No Yes, macOS only No
Function: A PDFAnnotationStamp object allows you to display a word or phrase, such as "Confidential," in a PDF page.
// create new document with blank page
dim doc as new PDFDocumentMBS
dim page as new PDFPageMBS
doc.appendPage page

// make new stamp annotation
dim stamp as new PDFAnnotationStampMBS(100, 100, 100, 100)

// Name of stamp annotation. Standard stamps include names like, "Approved", "Draft", "TopSecret", etc.
// The name must be representable as ASCII.
// Very little is rendered if the annotation has no appearance stream. = "Approved"

page.addAnnotation stamp

// save to file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")

if doc.write(f) then
MsgBox "write failed"
end if
A PDFAnnotationStamp object should have an appearance stream associated with it; otherwise, nothing useful is rendered.
Subclass of the PDFAnnotationMBS class.

Feedback, Comments & Corrections

Super class PDFAnnotationMBS

This class has no sub classes.

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS MacControls Plugin.

PDFAnnotationSquareMBS   -   PDFAnnotationTextMBS

The biggest plugin in space...

MBS Xojo PDF Plugins