PDFKit.GetPDFText
-----------------

Queries the text of the PDF document.

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

MBS( "PDFKit.GetPDFText"; PDF ) 

**MBS**( **"PDFKit.GetPDFText";** /\* Queries the text of the 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). \*/ 

### 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). |  |

### Result

The text of the PDF Document as far as PDFKit knows it.

### Description

Queries the text of the PDF document.  
If you need only text for a given page, please use [PDFKit.GetPDFPageText](PDFKitGetPDFPageText.md).  
  
For solutions on Windows, Linux or iOS, please use [DynaPDF.ExtractText](DynaPDFExtractText.md).  
  
This is the same as the ExtractTextFromPDF() function in FileMaker 22.0  
### Examples

Extract all the text from the given PDF reference:

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

- [DynaPDF.ExtractDocumentText](DynaPDFExtractDocumentText.md)
- [DynaPDF.ExtractText](DynaPDFExtractText.md)
- [OCR.SetImage](OCRSetImage.md)
- [PDFKit.GetPDFPageText](PDFKitGetPDFPageText.md)
- [PDFKit.Open](PDFKitOpen.md)
- [Vision.RecognizeText](VisionRecognizeText.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.0000000432.000000031.0000000547.0000000LayoutObjectAnchor_)

### Blog Entries

- [The challenges of PDF text extraction](https://www.mbsplugins.de/archive/2025-07-10/The_challenges_of_PDF_text_ext/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.2pr1](https://www.mbsplugins.de/archive/2014-04-02/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.1pr5](https://www.mbsplugins.de/archive/2010-10-11/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2026, Seite 27](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)

This function checks for a license.

Created 18th August 2014 , last changed 14th February 2025

  
[PDFKit.GetPDFPagesPDFRef](PDFKitGetPDFPagesPDFRef.md) - [PDFKit.GetPrintLastSettings](PDFKitGetPrintLastSettings.md)

[HTML Version](PDFKitGetPDFText.shtml)