PDFAnnotationStampMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

PDFAnnotationStampMBS class

Super class: PDFAnnotationMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A PDFAnnotationStamp object allows you to display a word or phrase, such as "Confidential," in a PDF page.
Example
// 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.
stamp.name = "Approved"

page.addAnnotation stamp

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

if doc.write(f) then
f.Launch
else
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.

Super class PDFAnnotationMBS

This class has no sub classes.

Some examples using this class:

Blog Entries


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


PDFAnnotationSquareMBS   -   PDFAnnotationTextMBS


💬 Ask a question or report a problem