# Import individual PDF pages?

**URL:** <https://the.fmsoup.org/t/import-individual-pdf-pages/3344>\
**Category:** Questions\
**Tags:** pdf\
**Created:** [January 25, 2023, 4:12pm UTC](https://the.fmsoup.org/t/import-individual-pdf-pages/3344 "2023-01-25T16:12:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriscozi](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chriscozi](https://the.fmsoup.org/u/chriscozi)\
**Post date:** [January 25, 2023, 4:12pm UTC](https://the.fmsoup.org/t/import-individual-pdf-pages/3344/1 "2023-01-25T16:12:35Z")

</div>

Hi -  
Looking to import multi-page pdf's and I need individual pages in containers.  
Help?

TIA

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [January 25, 2023, 4:38pm UTC](https://the.fmsoup.org/t/import-individual-pdf-pages/3344/2 "2023-01-25T16:38:14Z")

</div>

Do you use our [MBS FileMaker Plugin](https://www.monkeybreadsoftware.com/filemaker/)?

You could use PDFKit or [DynaPDF](https://www.mbsplugins.eu/component_DynaPDF.shtml) functions to open the PDF from container and extract individual pages with [PDFKit.GetPDFPagePDF](https://www.mbsplugins.eu/PDFKitGetPDFPagePDF.shtml) and [DynaPDF.ImportPDFPage](https://www.mbsplugins.eu/DynaPDFImportPDFPage.shtml).

See our example files for splitting PDF.

---

<div class="post-metadata">

**Author:** ![chriscozi](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chriscozi](https://the.fmsoup.org/u/chriscozi)\
**Post date:** [January 25, 2023, 5:27pm UTC](https://the.fmsoup.org/t/import-individual-pdf-pages/3344/3 "2023-01-25T17:27:28Z")

</div>

Yes - using MBS !  
It looks like the PDFKit requires storing a new file (s).  
We have hundreds of docs and XX pages per doc.  
I was hoping to be able to place individual pages in a container (reference) field.  
WIll DynaPDF import but not make new files?  
Thanks!

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [January 25, 2023, 5:51pm UTC](https://the.fmsoup.org/t/import-individual-pdf-pages/3344/4 "2023-01-25T17:51:48Z")

</div>

The job can be done with both DynaPDF and PDFKit depending on what platforms you need.  
We have split examples, so you can with both split.

e.g. from an example script:

```auto
# New PDF
Set Variable [$pdf; Value:MBS("DynaPDF.New")]

# Open existing PDF file (or use DynaPDF.OpenPDFFromContainer for container)
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer"; $pdf; $InputContainer)]

# Import one page
Set Variable [$r; Value:MBS("DynaPDF.ImportPDFPage"; $pdf; 1)]

# Write PDF
Set Variable [$OutputPDF; Value:MBS("DynaPDF.Save"; $pdf)]

# release memory
Set Variable [$r1; Value:MBS("DynaPDF.Release"; $pdf)]

```

So you could run in a loop over your containers, then loop over pages (use [DynaPDF.GetImportPageCount](https://www.mbsplugins.eu/DynaPDFGetImportPageCount.shtml)) and do something with all the new containers you get.

Maybe you like to check the PDF Library example coming with our DynaPDF examples., which does this.

See also video here: [New example database PDF library](https://www.mbs-plugins.com/archive/2019-12-12/New_example_database_PDF_libra/monkeybreadsoftware_blog_filemaker)
