Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGPDFContextMBS class.

CGPDFContextMBS.AddDestinationAtPoint(name as string, x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets a destination to jump to when a point in the current page of a PDF graphics context is clicked.

name: A destination name.
x/y: A location in the current page of the PDF graphics context.
Available in Mac OS X v10.4 and later.

CGPDFContextMBS.BeginPage(pageInfo as dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Begins a new page in a PDF graphics context.

pageInfo: A dictionary that contains key-value pairs that define the page properties.

You must call the function EndPage to signal the end of the page.
Available in Mac OS X v10.4 and later.

CGPDFContextMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Closes a PDF document.

After closing the context, all pending data is written to the context destination, and the PDF file is completed. No additional data can be written to the destination context after the PDF document is closed.

CGPDFContextMBS.EndPage

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Ends the current page in the PDF graphics context.

You can call EndPage only after you call the function BeginPage.

CGPDFContextMBS.SetDestinationForRect(name as string, x as Double, y as Double, w as Double, h as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets a destination to jump to when a rectangle in the current PDF page is clicked.

name: A destination name.
x,y,w,h: A rectangle that specifies an area of the current page of a PDF graphics context. The rectangle is specified in default user space (not device space).
Available in Mac OS X v10.4 and later.

CGPDFContextMBS.SetURLForRect(url as string, x as Double, y as Double, w as Double, h as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 12.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the URL associated with a rectangle in a PDF graphics context.
Example
dim c as CGPDFContextMBS // your pdf context
c.SetURLForRect("http://www.apple.com/", 100, 100, 100, 100)

url: A string that specifies the destination of the contents associated with the rectangle.
rect: A rectangle specified in default user space (not device space).
Available in Mac OS X v10.4 and later.

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


The biggest plugin in space...