Import individual PDF pages?

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

TIA

Do you use our MBS FileMaker Plugin?

You could use PDFKit or DynaPDF functions to open the PDF from container and extract individual pages with PDFKit.GetPDFPagePDF and DynaPDF.ImportPDFPage.

See our example files for splitting PDF.

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!

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:

# 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) 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