DynaPDF.ImportPDFPage
---------------------

Imports a page from the import PDF and appends it to the current working PDF.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.0](newinversion30.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.ImportPDFPage"; PDF { ; PageIndex; ScaleX; ScaleY } ) 

**MBS**( **"DynaPDF.ImportPDFPage";** /\* Imports a page from the import PDF and appends it to the current working PDF. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PageIndex**; /\* Optional; The source page number from 1 to [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md).e.g. 1 \*/   
**$ScaleX**; /\* Optional; The scale factor for x coordinate.  
Default is 1.0.e.g. 1.0 \*/   
**$ScaleY**) /\* Optional; The scale factor for y coordinate.  
Default is 1.0.e.g. 1.0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |  |
| PageIndex | The source page number from 1 to [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md). | 1 | Optional |
| ScaleX | The scale factor for x coordinate.   Default is 1.0. | 1.0 | Optional      Added in version **13.0**. |
| ScaleY | The scale factor for y coordinate.   Default is 1.0. | 1.0 | Optional      Added in version **13.0**. |

### Result

Returns OK or error message.

### Description

Imports a page from the import PDF and appends it to the current working PDF.  
To open the import PDF, please use [DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md) or [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md).  
  
Requires a Lite license in DynaPDF 5. Used to be a Pro license for DynaPDF 4.  
To import all pages, please use [DynaPDF.ImportPDFFile](DynaPDFImportPDFFile.md) function instead.  
  
Use [DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md) including AllPageObjects option to preserve links.  
  
If you have an open page, we close it automatically for you before doing the import.  
See also [ImportPDFPage](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ImportPageEx.shtml) function in DynaPDF manual.

### Examples

Import a single page:

 Set Variable \[$r ; Value: MBS ( "[DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md)"; $pdf ; "ImportAll¶ImportAsPage¶AllPageObjects" )\]  
Set Variable \[$r ; Value: MBS ("[DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md)"; $pdf ; Invoice::PDF Template)\]  
Set Variable \[$r ; Value: MBS ("DynaPDF.ImportPDFPage"; $pdf ; 1)\]  
Import selected pages from one PDF and write into a new one:

 # New PDF   
Set Variable \[$pdf ; Value:MBS ("[DynaPDF.New](DynaPDFNew.md)")\]  
  
\# Open existing PDF file (or use [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md) for container)   
Set Variable \[$r ; Value:MBS ("[DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md)"; $pdf ; $path )\]  
  
\# Query page count   
Set Variable \[$pageCount ; Value:MBS ( "[DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md)"; $pdf )\]  
  
\# Import the pages you need   
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; 1)\]  
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; 2)\]  
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; 3)\]  
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; $pagecount - 1)\]  
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; $pagecount - 2)\]  
  
\# Set output to this file path   
\# MBS ( "[DynaPDF.OpenOutputFile](DynaPDFOpenOutputFile.md)"; $pdf ; "/Users/cs/Desktop/output.pdf" )   
  
\# Write PDF   
Set Variable \[$r ; Value:MBS ("[DynaPDF.Save](DynaPDFSave.md)"; $pdf )\]  
  
\# release memory   
Set Variable \[$r1 ; Value:MBS ("[DynaPDF.Release](DynaPDFRelease.md)"; $pdf )\]  
Split first page from a PDF:

 # New PDF   
Set Variable \[$pdf ; Value:MBS ("[DynaPDF.New](DynaPDFNew.md)")\]  
  
\# Open existing PDF file (or use [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md) for container)   
Set Variable \[$r ; Value:MBS ("[DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md)"; $pdf ; $path )\]  
  
\# Import one page   
Set Variable \[$r ; Value:MBS ("DynaPDF.ImportPDFPage"; $pdf ; 1)\]  
  
\# Write PDF   
Set Variable \[$r ; Value:MBS ("[DynaPDF.Save](DynaPDFSave.md)"; $pdf )\]  
  
\# release memory   
Set Variable \[$r1 ; Value:MBS ("[DynaPDF.Release](DynaPDFRelease.md)"; $pdf )\]  
### See also

- [DynaPDF.ImportPDFFile](DynaPDFImportPDFFile.md)
- [DynaPDF.OpenOutputFile](DynaPDFOpenOutputFile.md)
- [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md)
- [DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md)
- [DynaPDF.Parser.Content](DynaPDFParserContent.md)
- [DynaPDF.Print](DynaPDFPrint.md)
- [DynaPDF.Release](DynaPDFRelease.md)
- [DynaPDF.RenderPage](DynaPDFRenderPage.md)
- [DynaPDF.Save](DynaPDFSave.md)
- [DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md)

### Release notes

- **Version 16.1**
    - Changed [DynaPDF.ImportPDFPage](https://www.mbsplugins.eu/DynaPDFImportPDFPage.shtml) to only require a Lite instead of a Pro license.
- **Version 9.2**
    - Improved error handling for [DynaPDF.ImportPDFPage](http://www.mbsplugins.eu/DynaPDFImportPDFPage.shtml) function.

### Example Databases

- [Containers/Create Container Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Create%20Container%20Preview.shtml#1ScriptAnchor_)
- [DynaPDF/Apply Letter Paper to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Apply%20Letter%20Paper%20to%20PDF.shtml#2ScriptAnchor_)
- [DynaPDF/Click Points](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Click%20Points.shtml#4ScriptAnchor_)
- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#2ScriptAnchor_)
- [DynaPDF/PDF Differences](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/PDF%20Differences.shtml#1ScriptAnchor_)
- [DynaPDF/PDF Library](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/PDF%20Library.shtml#13ScriptAnchor_)
- [DynaPDF/Render Page](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Render%20Page.shtml#2ScriptAnchor_)
- [DynaPDF/Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Replace%20Text.shtml#2ScriptAnchor_)
- [DynaPDF/Split PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Split%20PDF.shtml#1ScriptAnchor_)
- [DynaPDF/Swiss QRCode](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Swiss%20QRCode.shtml#2ScriptAnchor_)

### Blog Entries

- [Make PDF certificates in calculation with DynaPDF](https://www.mbsplugins.de/archive/2026-05-18/Make_PDF_certificates_in_calcu/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-03-17/MBS_FileMaker_Plugin_161_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr3](https://www.mbsplugins.de/archive/2026-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 15 - DynaPDF](https://www.mbsplugins.de/archive/2023-12-15/MBS_Plugin_Advent_calendar_15_/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.0](https://www.mbsplugins.de/archive/2023-01-24/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Things you can do with DynaPDF](https://www.mbsplugins.de/archive/2021-07-02/Things_you_can_do_with_DynaPDF/monkeybreadsoftware_blog_filemaker)
- [Swiss QR-Codes for invoices as vector graphics](https://www.mbsplugins.de/archive/2020-06-12/Swiss_QR-Codes_for_invoices_as/monkeybreadsoftware_blog_filemaker)
- [FileMaker with ZUGFeRD 2.0 and Factur-X](https://www.mbsplugins.de/archive/2019-06-14/FileMaker_with_ZUGFeRD_20_and_/monkeybreadsoftware_blog_filemaker)
- [Normalize PDF orientation with MBS Plugins and DynaPDF](https://www.mbsplugins.de/archive/2018-03-09/Normalize_PDF_orientation_with/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2021, Seite 26](https://filemaker-magazin.de/neuigkeit/4158-Appetithappen-FMM_202105)
- [Ausgabe 6/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)
- [Ausgabe 1/2018, Seite 25](https://filemaker-magazin.de/neuigkeit/3981-Appetithappen-FMM_201801)

This function checks for a license.

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

  
[DynaPDF.ImportPDFFile](DynaPDFImportPDFFile.md) - [DynaPDF.ImportPageAsTemplate](DynaPDFImportPageAsTemplate.md)

[HTML Version](DynaPDFImportPDFPage.shtml)