Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

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.
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
Notes:
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:


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


PDFAnnotationSquareMBS   -   PDFAnnotationTextMBS




Links
MBS Xojo Plugins