Platforms to show: All Mac Windows Linux Cross-Platform

Back to PDFBorderMBS class.

PDFBorderMBS.borderKeyValues as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
List all border properties as key-value pairs; returns a deep copy of all pairs.

Helpful for debugging.
(Read only property)

PDFBorderMBS.horizontalCornerRadius as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
For rounded-rect borders, the corner radius.

Deprecated in Mac OS X 10.7.
(Read and Write property)

PDFBorderMBS.lineWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Width of line used to strok border.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
dim doc as new PDFDocumentMBS(f)

dim page as PDFPageMBS = doc.pageAtIndex(0)
dim a as new PDFAnnotationSquareMBS(100,100,100,100)

a.interiorColor = NSColorMBS.greenColor
a.colorValue = NSColorMBS.redColor
a.border.lineWidth=5

page.addAnnotation(a)

dim o as FolderItem = SpecialFolder.Desktop.Child("testout.pdf")
call doc.write(o)
o.Launch

(Read and Write property)

PDFBorderMBS.style as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether border is drawn solid, dashed etc.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
dim doc as new PDFDocumentMBS(f)

dim page as PDFPageMBS = doc.pageAtIndex(0)
dim a as new PDFAnnotationSquareMBS(100,100,100,100)

a.border.style = PDFBorderMBS.kPDFBorderStyleDashed

page.addAnnotation(a)

dim o as FolderItem = SpecialFolder.Desktop.Child("testout.pdf")
call doc.write(o)
o.Launch

Use this constants:

kPDFBorderStyleSolid = 0
kPDFBorderStyleDashed = 1
kPDFBorderStyleBeveled = 2
kPDFBorderStyleInset = 3
kPDFBorderStyleUnderline = 4
(Read and Write property)

PDFBorderMBS.verticalCornerRadius as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property PDFKit MBS PDFKit Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
For rounded-rect borders, the corner radius.

Deprecated in Mac OS X 10.7.
(Read and Write property)

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


The biggest plugin in space...