isPDFFile

Verifies whether a PDF file is valid.

isPDFFile(path) → returns boolean

This function requires Adobe ColdFusion 8 and up.  Not supported on Lucee, etc.

Argument Reference

path string
Required

Pathname to a PDF file.

Examples
Sample code invoking the isPDFFile function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub