Difference between revisions of "PDF Page Count"
From SmartWiki
(Created page with 'The following syntax can be used to determine the number of pages for PDF documents that have been uploaded to Single File or Multiple Files fields: @'''fieldname'''.num…') |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | The following syntax can be used to determine the number of pages for PDF documents that have been uploaded to [[Single File]] or [[Multiple Files]] fields: | + | The following syntax can be used to determine the number of pages for '''PDF''' documents that have been uploaded to [[Single File]] or [[Multiple Files]] fields: |
− | @ | + | @''fieldname''.numOfPages@ |
Example: | Example: | ||
Line 7: | Line 7: | ||
* If no PDF is present no value will be returned | * If no PDF is present no value will be returned | ||
+ | |||
+ | |||
+ | The number of files in [[Multiple Files]] fields can similarly be evaluated as: | ||
+ | |||
+ | @''fieldname''.numOfFiles@ | ||
+ | |||
+ | * This will call '''all''' files in the field, not just PDF documents. | ||
==Note== | ==Note== | ||
+ | * Only PDF files can be page counted | ||
* The system is occasionally unable to determine the number of pages, in which case the value returned will be a hyphen (-). | * The system is occasionally unable to determine the number of pages, in which case the value returned will be a hyphen (-). | ||
+ | ==See Also== | ||
+ | * [[Display Additional File Attributes for PDF Documents]] | ||
− | + | [[Category:PDF]] | |
− | [[Category:PDF |
Latest revision as of 12:41, 20 October 2017
The following syntax can be used to determine the number of pages for PDF documents that have been uploaded to Single File or Multiple Files fields:
@fieldname.numOfPages@
Example:
@Lead Applicant CV.numOfPages@
- If no PDF is present no value will be returned
The number of files in Multiple Files fields can similarly be evaluated as:
@fieldname.numOfFiles@
- This will call all files in the field, not just PDF documents.
Note
- Only PDF files can be page counted
- The system is occasionally unable to determine the number of pages, in which case the value returned will be a hyphen (-).