IsPDFObject()

Determines whether a value is a PDF object.

Requires Extension: PDF Extension

IsPDFObject( value=any );

Returns: Boolean

Argument Description
value
any, required

A value, typically the PDF object stored as a variable name.

Examples

<cfdocument name="test" format="pdf">
    <h1>Welcome to Lucee</h1>
</cfdocument>
<cfif IsPDFObject(test)> 
    This is PDF
<cfelse> 
    This is not a PDF
</cfif>

See also