Brian Dunning's FileMaker Custom Functions

pdfPageCount ( container ; result )

Returns the pdf's number of pages

  Average rating: 4.4 (23 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
PDFPageCount ( container ; "" )
  Sample output:
6 (if the container contains a pdf with 6 pages )

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns the pdf's number of pages.
Needs Filemaker 14.
Result parameter must be empty.
I purposely left $count and $t to facilitate the reading of the function, but should be renamed with something like: $CFpdfPageCount and $CFpdfData

 

Comments

EncryptedFile   EncryptedFile, Redondo Beach, CA
Sep 28, 2015
How difficult would it be to reverse engineer this to show me how many pages are in an Excel workbook?
I don't see anything in this code that appears to be specifically for .PDF files.

I'm going to install this, and see if I can get it to do the above request, or if anyone knows of a Custom Function that is specifically intended to show/log/display the amount of pages in a Microsoft Office Excel Worksheet (.xlsx) page.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: