Platforms to show: All Mac Windows Linux Cross-Platform

Back to PDFViewMBS class.

Previous items

PDFViewMBS.printWithInfo(printInfo as NSRectMBS, autoRotate as Boolean, pageScaling as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Like the above method but allows an additional parameter to describe page scaling (see PDFDocument.h for types).

If pageScaling is equal to kPDFPrintPageScaleToFit each page is scaled up or down in order to best fit the paper size. Specifying kPDFPrintPageScaleDownToFit for pageScaling will only scale large pages down to fit the paper, smaller pages will not be scaled up. Passing pageScaling equal to kPDFPrintPageScaleNone is the equivalent of calling printWithInfo above.

See also:

PDFViewMBS.rowSizeForPage(page as PDFPageMBS) as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 10.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the size needed to display a row of the current document page.

The size is dependent on the current scale factor and display attributes.

PDFViewMBS.scrollSelectionToVisible

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Scrolls the view until the selection is visible.

PDFViewMBS.selectAll

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Selects all text in the document.

PDFViewMBS.setCurrentSelection(selection as PDFSelectionMBS, animate as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Sets the selection, in an animated way, if desired.

This method behaves as setCurrentSelection, but with the addition of animation, if animate is true. The animation serves to draw the user's attention to the new selection, which can be useful when implementing search.
Available in Mac OS X v10.5 and later.

PDFViewMBS.setCursorForAreaOfInterest(area as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the type of mouse cursor according to the type of area the mouse cursor is over.

This method is especially useful for custom subclasses of the PDFView class.

PDFViewMBS.setHighlightedSelections(selections() as PDFSelectionMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Sets highlighted selections.

Unlike the user selection (above), these selections do not go away when the user clicks in the PDFView, etc. You must explicitly remove them by passing nil to setHighlightedSelections. These methods allow you to highlight text perhaps to indicate matches from a text search. To avoid confusion you should probably make sure the PDFSelectionMBS passed in are a different color from the user's default text selection color. Commonly used for highlighting search results.

PDFViewMBS.visiblePages as PDFPageMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 10.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns an array of PDFPageMBS objects that represent the currently visible pages.

Available in Mac OS X v10.5 and later.

PDFViewMBS.zoomIn

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Zooms in by increasing the scaling factor.

Each invocation of zoomIn muliplies the scaling factor by the square root of 2.
Available in Mac OS X v10.4 and later.

PDFViewMBS.zoomOut

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Zooms out by decreasing the scaling factor.

Each invocation of zoomOut divides the scaling factor by the square root of 2.
Available in Mac OS X v10.4 and later.

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...