Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

PDFPageMBS.attributedString as NSAttributedStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: String (with linefeeds and in some cases spaces inserted) representing the text on the page.
Notes: (Read only property)

Feedback, Comments & Corrections

PDFPageMBS.dataRepresentation as memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: Returns PDF data (a proper PDF document) consisting of a single page (this page).
Notes:
Note, external page links are not preserved.
(Read only property)

Feedback, Comments & Corrections

PDFPageMBS.displaysAnnotations as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: Method to turn on or off the display of annotations when the page is drawn.
Notes: (Read and Write property)

Feedback, Comments & Corrections

PDFPageMBS.document as PDFDocumentMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: The PDFDocument the page is associated with.
Notes: (Read only property)

Feedback, Comments & Corrections

PDFPageMBS.label as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: The page label. Usually "1" for the first page, "2" for the second, etc.
Notes: (Read only property)

Feedback, Comments & Corrections

PDFPageMBS.numberOfCharacters as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: Number of characters on the page (including linefeeds and spaces inserted).
Notes: (Read only property)

Feedback, Comments & Corrections

PDFPageMBS.rotation as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: Rotation on a page.
Notes:
Must be 0, 90, 180 or 270 (negative rotations will be "normalized" to one of 0, 90, 180 or 270).
Some PDF's have an inherent rotation and so rotation may be non-zero when a PDF is first opened.
(Read and Write property)

Feedback, Comments & Corrections

PDFPageMBS.stringValue as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property PDFKit MBS MacControls Plugin 7.6 Yes No No Yes, macOS only No
Function: String (with linefeeds and in some cases spaces inserted) representing the text on the page.
Example:
dim p as PDFDocumentMBS
dim f as FolderItem

f=SpecialFolder.Desktop.Child("test.pdf")
p=new PDFDocumentMBS(f)

MsgBox "Text from first page:"+EndOfLine+EndOfLine+p.pageAtIndex(0).stringValue
Notes:
If you need to extract the text of a PDF document page cross platform or with more options, you may want to look on the DynaPDF plugin.

It seems like this string value is not always available. It works for PDF Documents created from a disc file, but not for files our test app created on runtime in memory by using PDFDocument constructor and insertpage.
(Read only property)

Feedback, Comments & Corrections

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




Links
MBS FileMaker tutorial videos