Platforms to show: All Mac Windows Linux Cross-Platform
Back to PDFViewMBS class.
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 |
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 |
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 |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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 |
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 |
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 |
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 |
Available in Mac OS X v10.5 and later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Each invocation of zoomIn muliplies the scaling factor by the square root of 2.
Available in Mac OS X v10.4 and later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | PDFKit | MBS PDFKit Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Each invocation of zoomOut divides the scaling factor by the square root of 2.
Available in Mac OS X v10.4 and later.
The items on this page are in the following plugins: MBS PDFKit Plugin.