Determines whether a value is a PDF object.
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.
IsPDFObject(value
)
IsDate, IsImage, IsNumeric, IsNumericDate, IsObject, IsPDFFile, IsQuery, IsSimpleValue, IsStruct, IsWDDX, IsXmlDoc, IsXmlElem, IsXmlRoot, cfpdf, cfpdfform
ColdFusion 8: Added this function.
Parameter |
Description |
---|---|
value |
A value, typically the PDF object stored as a variable name. |
This function returns False for query and XML objects.
<cfpdf source="c:\forms\quoteform.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>