DynaPDF.ImportPageAsTemplate
----------------------------

Imports a page and creates a template which you can place on new PDF pages.

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

MBS( "DynaPDF.ImportPageAsTemplate"; PDF; PageNumber ) 

**MBS**( **"DynaPDF.ImportPageAsTemplate";** /\* Imports a page and creates a template which you can place on new PDF pages. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PageNumber**) /\* The page number in the open import PDF.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| PageNumber | The page number in the open import PDF. | 1 |

### Result

Returns template reference number or error.

### Description

Imports a page and creates a template which you can place on new PDF pages.  
Requires DynaPDF Lite license.  
See also [ImportPageAsTemplate](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ImportPage.shtml) function in DynaPDF manual.

### Examples

Import 5th page:

 MBS ( "DynaPDF.ImportPageAsTemplate"; $PDF ; 5 )  
### See also

- [DynaPDF.Initialize](DynaPDFInitialize.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PlaceTemplate](DynaPDFPlaceTemplate.md)
- [DynaPDF.PlaceTemplateEx](DynaPDFPlaceTemplateEx.md)
- [DynaPDF.RotateTemplate](DynaPDFRotateTemplate.md)
- [DynaPDF.Table.SetCellTemplate](DynaPDFTableSetCellTemplate.md)

### Example Databases

- [DynaPDF/Apply Letter Paper to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Apply%20Letter%20Paper%20to%20PDF.shtml#2ScriptAnchor_)
- [DynaPDF/Convert to 2 Pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Convert%20to%202%20Pages.shtml#2ScriptAnchor_)
- [DynaPDF/Generate Previews](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Generate%20Previews.shtml#3ScriptAnchor_)
- [DynaPDF/Place Template](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Place%20Template.shtml#2ScriptAnchor_)
- [DynaPDF/Shrink PDF pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Shrink%20PDF%20pages.shtml#2ScriptAnchor_)
- [DynaPDF/Tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Tables.shtml#3ScriptAnchor_)

### Blog Entries

- [Adding cutting lines for PDF in FileMaker](https://www.mbsplugins.de/archive/2021-01-04/Adding_cutting_lines_for_PDF_i/monkeybreadsoftware_blog_filemaker)
- [Create two page PDF document in FileMaker](https://www.mbsplugins.de/archive/2019-08-22/Create_two_page_PDF_document_i/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 4/2022, Seite 34](https://filemaker-magazin.de/neuigkeit/4191-Appetithappen-FMM_202204)

This function checks for a license.

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

  
[DynaPDF.ImportPDFPage](DynaPDFImportPDFPage.md) - [DynaPDF.InitColorManagement](DynaPDFInitColorManagement.md)

[HTML Version](DynaPDFImportPageAsTemplate.shtml)