Platforms to show: All Mac Windows Linux Cross-Platform
Back to PDFAnnotationMBS class.
PDFAnnotationMBS.addBezierPath(path as NSBezierPathMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Path points are specified in annotation space.
Used by annotations type(s): /Ink.
PDFAnnotationMBS.choices as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Used by annotations type(s): /Widget (field type(s): /Ch).
PDFAnnotationMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 10.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This class is the base class for a number of annotations. So this constructor is private to make sure you don't create instances of PDFAnnotationMBS. But you can still create instances of the subclasses.
This constructor is private to make sure you don't create an object from this class by error. Please use designated functions to create objects.
See also:
PDFAnnotationMBS.Constructor(Handle as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Please pass in a non zero handle which points to a PDFAnnotation object.
For use with declares.
See also:
PDFAnnotationMBS.Constructor(left as Double, top as Double, width as Double, height as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
You need to set type once.
See also:
PDFAnnotationMBS.Constructor(left as Double, top as Double, width as Double, height as Double, annotationType as String, properties as Dictionary = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
PDFAnnotationMBS.copy as PDFAnnotationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
For Mac OS X 10.7 and newer this function uses the framework function.
For Mac OS X 10.6 and older this function uses our own copy function to duplicate the annotation.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
PDFAnnotationMBS.drawWithBox(box as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The annotation is drawn relative to the origin of box in page space.
Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.
For additional information see the "Constants" section in the PDFPage class.
Available in Mac OS X v10.4 and later.
PDFAnnotationMBS.paths as NSBezierPathMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Paths are specified in annotation space.
Used by annotations type(s): /Ink.
PDFAnnotationMBS.quadrilateralPoints as NSPointMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The points for each quad are ordered in a 'Z' pattern. That is, the first point should represent the upper left point representing the start of the marked-up text, the next point will be the upper right, the third point will represent the lower left of the text and the last point the lower right.
Points are specified relative to the annotation's bound's origin.
PDFAnnotationMBS.removeAllAppearanceStreams
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Without an appearance stream, annotations are drawn strictly according to their parameters (color, border, font, etc.). When a PDF is saved, PDF Kit will always write out an appearance stream(s) for each annotation. If the PDF is reloaded, you will need to remove the appearance streams in order to continue to edit the annotations parameters.
Requires Mac OS X 10.5.
PDFAnnotationMBS.removeBezierPath(path as NSBezierPathMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
PDFAnnotationMBS.removeValueForAnnotationKey(Key as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
PDFAnnotationMBS.setBooleanValue(Key as String, value as Boolean) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also setValue.
PDFAnnotationMBS.setChoices(choices() as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Used by annotations type(s): /Widget (field type(s): /Ch).
PDFAnnotationMBS.setQuadrilateralPoints(points() as NSPointMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The points for each quad are ordered in a 'Z' pattern. That is, the first point should represent the upper left point representing the start of the marked-up text, the next point will be the upper right, the third point will represent the lower left of the text and the last point the lower right.
Points are specified relative to the annotation's bound's origin.
PDFAnnotationMBS.setRectValue(Key as String, value as NSRectMBS) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also setValue.
PDFAnnotationMBS.setValue(Key as String, value as Variant) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on successful assignment, false on error. Key must be valid for a PDF annotation's object type, and must have a value that is acceptable for the key type. These values can either be a string, number, array of strings or numbers, or an dictionary of the previously listed types. Some keys expect a complex type, for example the key "/C" expects a color in the format of an array of 0, 1, 3, or 4 elements, with each element being a floating-point number in the range of 0.0 - 1.0 ). As a convenience, these kind of keys will directly accept NSColorMBS values. Other convenience functions provide similar support can be found in PDFAnnotationUtilities header file. Note that you can set the environment variable "PDFKIT_LOG_ANNOTATIONS" to log any key-value assignment failures.
PDFAnnotationMBS.setValues(values() as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Used by annotations type(s): /Widget (field type(s): /Ch).
PDFAnnotationMBS.valueForAnnotationKey(Key as String) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
PDFAnnotationMBS.values as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 21.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Used by annotations type(s): /Widget (field type(s): /Ch).
The items on this page are in the following plugins: MBS PDFKit Plugin.
