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
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.Launchelse 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)
50 properties
22 methods
method addBezierPath (path as NSBezierPathMBS )
method choices as string()
method Constructor Private
method Constructor (Handle as Integer)
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)
method copy as PDFAnnotationMBS
method Destructor
method drawWithBox (box as Integer)
method paths as NSBezierPathMBS ()
method quadrilateralPoints as NSPointMBS ()
method removeAllAppearanceStreams
method removeBezierPath (path as NSBezierPathMBS )
method removeValueForAnnotationKey (Key as String)
method setBooleanValue (Key as String, value as Boolean) as Boolean
method setChoices (choices() as string)
method setQuadrilateralPoints (points() as NSPointMBS )
method setRectValue (Key as String, value as NSRectMBS ) as Boolean
method setValue (Key as String, value as Variant) as Boolean
method setValues (values() as string)
method valueForAnnotationKey (Key as String) as Variant
method values as string()
78 shared methods
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