PDFKit.GetPDFPageFormattedText
------------------------------

Queries the styled text of a page in a PDF document.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PDFKit](component_PDFKit.md) | [2.7](newinversion27.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "PDFKit.GetPDFPageFormattedText"; PDF; Index ) 

**MBS**( **"PDFKit.GetPDFPageFormattedText"** /\* Queries the styled text of a page in a PDF document. \*/  
**$PDF**; /\* A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from [PDFKit.Open](PDFKitOpen.md). \*/   
**$Index**) /\* The index of the page. From zero to [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)-1. e.g. 5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from [PDFKit.Open](PDFKitOpen.md). |  |
| Index | The index of the page. From zero to [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)-1. | 5 |

### Result

The styled text of the PDF page as far as PDFKit knows it and the plugin can translate it.

### Description

Queries the styled text of a page in a PDF document.  
Our plugin translates the styled text from PDFKit to FileMaker. It should work with font size and styles like bold, underline and italic.  
### Examples

Extract styled text of page 6 in this PDF

 MBS ( "PDFKit.GetPDFPageFormattedText"; $ref ; 5 )  
### See also

- [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)
- [PDFKit.Open](PDFKitOpen.md)

### Example Databases

- [Mac and iOS/PDFKit/Extract PDF Pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Extract%20PDF%20Pages.shtml#1GroupButton12.0000000579.000000031.0000000760.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 2.7fc](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.7 Release notes](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_27_Releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7pr1](https://www.mbsplugins.de/archive/2012-03-26/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 16th February 2015

  
[PDFKit.GetPDFPageDisplayAnnotation](PDFKitGetPDFPageDisplayAnnotation.md) - [PDFKit.GetPDFPageImage](PDFKitGetPDFPageImage.md)

[HTML Version](PDFKitGetPDFPageFormattedText.shtml)