PDFKit.GetPDFPagePDFRef
-----------------------

Creates a new PDF Document with the given PDF page.

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

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

**MBS**( **"PDFKit.GetPDFPagePDFRef";** /\* Creates a new PDF Document with the given PDF page. \*/  
**$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).e.g. myTable::myMedia \*/   
**$Index**) /\* The index of the page. From zero to [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)-1.e.g. 1 \*/ 

### 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). | myTable::myMedia |
| Index | The index of the page. From zero to [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)-1. | 1 |

### Result

Returns a PDF reference for the new PDF document.

### Description

Creates a new PDF Document with the given PDF page.  
### Examples

Extract the PDF page with the given number:

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

- [PDFKit.GetPDFPageCount](PDFKitGetPDFPageCount.md)
- [PDFKit.GetPDFPageImage](PDFKitGetPDFPageImage.md)
- [PDFKit.GetPDFPagePDF](PDFKitGetPDFPagePDF.md)
- [PDFKit.GetPDFPagesPDF](PDFKitGetPDFPagesPDF.md)
- [PDFKit.GetPDFPagesPDFRef](PDFKitGetPDFPagesPDFRef.md)
- [PDFKit.GetPDFPageText](PDFKitGetPDFPageText.md)
- [PDFKit.GetPDFPageValue](PDFKitGetPDFPageValue.md)
- [PDFKit.Open](PDFKitOpen.md)

### Example Databases

- [Mac and iOS/PDFKit/Split](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Split.shtml#1ScriptAnchor_)

This function is free to use.

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

  
[PDFKit.GetPDFPagePDF](PDFKitGetPDFPagePDF.md) - [PDFKit.GetPDFPageRotation](PDFKitGetPDFPageRotation.md)

[HTML Version](PDFKitGetPDFPagePDFRef.shtml)