Whatever message this page gives is out now! Go check it out!

IsPDFObject

Last update:
May 18, 2026

Description

Determines whether a value is a PDF object.

Returns

True, if the value represents a PDF object. False if the value is any other type of data, such as an integer, string, date, or structure.

Category

Syntax

IsPDFObject(value)

See also

History

ColdFusion 8: Added this function.

Parameters

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

Usage

This function returns False for query and XML objects.

Example

 
<cfpdf source="c:\forms\'uoteform.pdf" action="read" name="myPDFform"/> 
<cfif IsPDFObject(myPDFform)> 
<cfpdf source=#myPDFform# action="write" destination = "c:\forms\newPDFForm.pdf"> 
<cfelse> 
<p>This is not a PDF.</p> 
</cfif>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page