Platforms to show: All Mac Windows Linux Cross-Platform
PDFPageMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | PDFKit | MBS PDFKit Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- event drawRect(box as Integer, g as NSGraphicsMBS)
- 10 properties
- property attributedString as NSAttributedStringMBS
- property CGPDFPageHandle as Integer
- property dataRepresentation as memoryblock
- property displaysAnnotations as boolean
- property document as PDFDocumentMBS
- property label as string
- property numberOfCharacters as Integer
- property rotation as Integer
- property stringValue as string
- property boundsForBox(box as Integer) as NSRectMBS
- 23 methods
- method addAnnotation(annotation as PDFAnnotationMBS)
- method annotationAtPoint(x as single, y as single) as PDFAnnotationMBS
- method annotations as PDFAnnotationMBS()
- method CalcTransformForBox(box as Integer) as Variant
- method characterBoundsAtIndex(index as Integer) as NSRectMBS
- method characterIndexAtPoint(x as single, y as single) as Integer
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(image as NSImageMBS)
- method copy as PDFPageMBS
- method Destructor
- method Draw(g as NSGraphicsMBS, box as Integer = 0)
- method drawWithBox(box as Integer)
- method removeAnnotation(annotation as PDFAnnotationMBS)
- method Render(dpi as Double = 72.0, box as Integer = 0, background as NSColorMBS = nil) as NSImageMBS
- method selectionForLineAtPoint(left as single, top as single) as PDFSelectionMBS
- method selectionForRange(position as Integer, length as Integer) as PDFSelectionMBS
- method selectionForRect(left as single, top as single, width as single, height as single) as PDFSelectionMBS
- method selectionForWordAtPoint(left as single, top as single) as PDFSelectionMBS
- method selectionFromPointToPoint(startleft as single, starttop as single, endleft as single, endtop as single) as PDFSelectionMBS
- method thumbnailOfSize(size as NSSizeMBS, box as integer) as NSImageMBS
- method transformContextForBox(box as Integer)
- method transformForBox(box as integer) as variant
- 5 constants
Constants
Constant | Value | Description |
---|---|---|
kPDFDisplayBoxArtBox | 4 | One of the constants to use for page boxes. |
Boxes
Constant | Value | Description |
---|---|---|
kPDFDisplayBoxBleedBox | 2 | |
kPDFDisplayBoxCropBox | 1 | |
kPDFDisplayBoxMediaBox | 0 | |
kPDFDisplayBoxTrimBox | 3 |
This class has no sub classes.
Some methods using this class:
- CustomPDFViewMBS.ClearOverlay(page as PDFPageMBS, post as boolean = true)
- PDFDocumentMBS.insertPage(page as PDFPageMBS, index as Integer)
- PDFDocumentMBS.pageAtIndex(index as Integer) as PDFPageMBS
- PDFSelectionMBS.boundsForPage(page as PDFPageMBS) as NSRectMBS
- PDFSelectionMBS.drawForPage(page as PDFPageMBS, box as Integer, active as boolean)
- PDFThumbnailViewMBS.selectedPages as PDFPageMBS()
- PDFViewMBS.convertPointToPage(point as NSPointMBS, page as PDFPageMBS) as NSPointMBS
- PDFViewMBS.drawPage(page as PDFPageMBS)
- PDFViewMBS.goToPage(page as PDFPageMBS)
- PDFViewMBS.visiblePages as PDFPageMBS()
Some properties using for this class:
- PDFAnnotationMBS.page as PDFPageMBS
- PDFDestinationMBS.page as PDFPageMBS
- PDFViewMBS.currentPage as PDFPageMBS
- CustomPDFViewMBS.Overlay(page as PDFPageMBS, post as boolean = true) as variant
- DesktopPDFViewControlMBS.Overlay(page as PDFPageMBS, post as boolean = true) as variant
- PDFViewControlMBS.Overlay(page as PDFPageMBS, post as boolean = true) as variant
Some events using this class:
- CustomPDFViewMBS.AfterDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS)
- CustomPDFViewMBS.BeforeDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
- CustomPDFViewMBS.BeforeDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
- DesktopPDFViewControlMBS.AfterDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS)
- DesktopPDFViewControlMBS.BeforeDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
- DesktopPDFViewControlMBS.BeforeDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
- PDFViewControlMBS.AfterDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS)
- PDFViewControlMBS.AfterDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS)
- PDFViewControlMBS.BeforeDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
- PDFViewControlMBS.BeforeDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
Some examples using this class:
- /MacExtras/Continuity Camera
- /MacFrameworks/IKSlideShow
- /PDFKit/Add Annotations to PDF
- /PDFKit/Add Outlines with Destinations to PDF
- /PDFKit/Create Page
- /PDFKit/Create Page with custom stamp annotation
- /PDFKit/PDFKit Print PDF
- /PDFKit/PDFView/PDFView customized with picture overlay
- /PDFKit/PDFView/PDFView overlay/PDFView overlay
- /PDFKit/Render PDFPage
Blog Entries
- MBS Xojo Plugins, version 22.5pr1
- Several ways for picture to PDF in MBS Plugins
- News from the MBS Xojo Plugins Version 21.1
- New in the MBS Xojo Plugins Version 20.2
- MBS Xojo Plugins, version 20.2pr3
- JPEG rendering in MacOS Mojave
- MBS Plugins 11.1 Release notes
- Have you checked out PDFViewMBS class?
- MBS REALbasic plug-ins version 10.3
- MBS Plugins 10.3 Release Notes
Xojo Developer Magazine
- 6.4, page 34: Creating PDF Files, How to create PDFs using the MBS Plugins by Christian Schmitz
- 20.3, page 80: Great Shots With Continuity Camera, Use your iOS device to take a picture for your Mac by Stefanie Juchmes
Release notes
- Version 22.5
- Fixed drawRect event for PDFPageMBS class for macOS Ventura.
- Version 20.2
- Added constructor to take handle to PDFSelectionMBS, PDFActionMBS, PDFAnnotationMBS, PDFBorderMBS, PDFDestinationMBS, PDFDocumentMBS, PDFOutlineMBS and PDFPageMBS classes.
The items on this page are in the following plugins: MBS PDFKit Plugin.
PDFOutlineMBS - PDFSelectionMBS