PDFKit.OpenPath
---------------

Opens a PDF from a file path and returns a PDF Reference value.

| 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.OpenPath"; Path ) 

**MBS**( **"PDFKit.OpenPath";** /\* Opens a PDF from a file path and returns a PDF Reference value. \*/  
**$Path**) /\* A text with a file path. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | A text with a file path. |  |

### Result

Returns a number for the PDF.

### Description

Opens a PDF from a file path and returns a PDF Reference value.  
This value can be used in other PDFKit calls to work on the same PDF.  
See also [PDFKit.OpenContainer](PDFKitOpenContainer.md) and [PDFKit.OpenURL](PDFKitOpenURL.md).  
PDF Document reference numbers are starting at 30000 and counting up for each new document.  
  
Use [PDFKit.Release](PDFKitRelease.md) later to free the memory.  
### Examples

Open the PDF with the given path:

 MBS ("PDFKit.OpenPath"; "/data/test.pdf")  
### See also

- [PDFKit.Open](PDFKitOpen.md)
- [PDFKit.OpenContainer](PDFKitOpenContainer.md)
- [PDFKit.OpenURL](PDFKitOpenURL.md)
- [PDFKit.Release](PDFKitRelease.md)
- [PDFKit.Watermark](PDFKitWatermark.md)
- [PDFKit.WriteToPath](PDFKitWriteToPath.md)

### Example Databases

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

### Blog Entries

- [Controlled printing for iOS in FileMaker](https://www.mbsplugins.de/archive/2024-04-15/Controlled_printing_for_iOS_in/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2026, Seite 26](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 6/2017, Seite 26](https://filemaker-magazin.de/neuigkeit/3967-Appetithappen-FMM_201706)

This function checks for a license.

Created 18th August 2014 , last changed 31st August 2023

  
[PDFKit.OpenContainer](PDFKitOpenContainer.md) - [PDFKit.OpenURL](PDFKitOpenURL.md)

[HTML Version](PDFKitOpenPath.shtml)