isPDFObject
Description
Determines whether a value is a PDF object.
Categories
Related
cfpdf cfpdfform isDate isImage isNumeric isNumericDate isObject isPDFFile isQuery isSimpleValue isStruct isWDDX isXmlDoc isXmlElem isXmlRoot
History
ColdFusion
8: Added this function.
Syntax
IsPDFObject(value)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| value | A value, typically the PDF object stored as a variable name. |
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.
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>
This is not a PDF.</p>
</cfif>