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

Parameter

Description

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>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy