PDFKit.GetPDFPageCount
----------------------

Queries the number of the pages in 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.GetPDFPageCount"; PDF ) 

**MBS**( **"PDFKit.GetPDFPageCount";** /\* Queries the number of the pages in 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 number of the page count.

### Description

Queries the number of the pages in the PDF document.  
### Examples

Query the page count from this PDF file:

 MBS ( "PDFKit.GetPDFPageCount"; mytable::pdfField )  
### See also

- [PDFKit.GetPDFPageDisplayAnnotation](PDFKitGetPDFPageDisplayAnnotation.md)
- [PDFKit.GetPDFPageImage](PDFKitGetPDFPageImage.md)
- [PDFKit.GetPDFPagePDF](PDFKitGetPDFPagePDF.md)
- [PDFKit.GetPDFPagePDFRef](PDFKitGetPDFPagePDFRef.md)
- [PDFKit.GetPDFPagesPDF](PDFKitGetPDFPagesPDF.md)
- [PDFKit.GetPDFPagesPDFRef](PDFKitGetPDFPagesPDFRef.md)
- [PDFKit.GetPDFPageValue](PDFKitGetPDFPageValue.md)
- [PDFKit.PageBounds](PDFKitPageBounds.md)
- [PDFKit.SetPDFPageDisplayAnnotation](PDFKitSetPDFPageDisplayAnnotation.md)
- [PDFKit.SetPDFPageRotation](PDFKitSetPDFPageRotation.md)

### Example Databases

- [Barcode/Barcodes from Invoices](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcodes%20from%20Invoices.shtml#1ScriptAnchor_)
- [Mac and iOS/PDFKit/Combine PDFs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Combine%20PDFs.shtml#1GroupButton252.000000078.0000000277.0000000187.0000000LayoutObjectAnchor_)
- [Mac and iOS/PDFKit/Extract PDF Pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Extract%20PDF%20Pages.shtml#1GroupButton12.000000072.000000031.0000000187.0000000LayoutObjectAnchor_)
- [Mac and iOS/PDFKit/PDF Merge Shrink Tool](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDF%20Merge%20Shrink%20Tool.shtml#3ScriptAnchor_)
- [Mac and iOS/PDFKit/PDFKit Page Selector](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDFKit%20Page%20Selector.shtml#1ScriptAnchor_)
- [Mac and iOS/PDFKit/Split](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Split.shtml#1ScriptAnchor_)

### Blog Entries

- [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 30](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 1/2023, Seite 30](https://filemaker-magazin.de/neuigkeit/4218-Appetithappen-FMM_202301)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[PDFKit.GetPDFDocument](PDFKitGetPDFDocument.md) - [PDFKit.GetPDFPageDisplayAnnotation](PDFKitGetPDFPageDisplayAnnotation.md)

[HTML Version](PDFKitGetPDFPageCount.shtml)