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.

  • event drawWithBox(box as Integer, g as NSGraphicsMBS) as boolean
  • property name as string
  • 2 methods
    • method Constructor(left as Double, top as Double, width as Double, height as Double)
    • method Constructor(left as Double, top as Double, width as Double, height as Double, annotationType as String, properties as Dictionary = nil)

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


The biggest plugin in space...