Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.GetImportPageCount
Queries number of pages in the current opened import PDF.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. |
Result
Returns page number or error message.
Description
Queries number of pages in the current opened import PDF.Please note that we have DynaPDF.GetPageCount for the current working PDF and the DynaPDF.GetImportPageCount for the current open import PDF.
Examples
Load a PDF from container and query page count:
$r = MBS("DynaPDF.OpenPDFFromContainer"; $PDF; Test::data)
$pageCount = MBS("DynaPDF.GetImportPageCount"; $PDF)
Import selected pages from one PDF and write into a new one:
# 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.OpenPDFFromFile"; $pdf; $path )]
# Query page count
Set Variable [$pageCount; Value:MBS( "DynaPDF.GetImportPageCount"; $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"; $pdf; "/Users/cs/Desktop/output.pdf" )
# Write PDF
Set Variable [$r; Value:MBS("DynaPDF.Save"; $pdf)]
# release memory
Set Variable [$r1; Value:MBS("DynaPDF.Release"; $pdf)]
See also
- DynaPDF.GetColorSpaceCount
- DynaPDF.GetImageCount
- DynaPDF.GetImportOrientation
- DynaPDF.GetImportPageBounds
- DynaPDF.GetPageCount
- DynaPDF.ImportPDFPage
- DynaPDF.OpenOutputFile
- DynaPDF.OpenPDFFromContainer
- DynaPDF.OpenPDFFromFile
- DynaPDF.Release
Example Databases
- DynaPDF/Apply Letter Paper to PDF
- DynaPDF/Convert to 2 Pages
- DynaPDF/DynaPDF Batch Preview
- DynaPDF/Generate Previews
- DynaPDF/Invoice/Invoice
- DynaPDF/Merge PDFs
- DynaPDF/PDF Differences
- DynaPDF/Shrink PDF pages
- DynaPDF/Split PDF
- DynaPDF/Tables
Blog Entries
- Merge PDF with table of contents
- Create two page PDF document in FileMaker
- Normalize PDF orientation with MBS Plugins and DynaPDF
- Introducing DynaPDF to MBS Filemaker Plugin
FileMaker Magazin
Created 18th August 2014, last changed 4th August 2016
DynaPDF.GetImportPageBounds - DynaPDF.GetInDocInfoCount
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos