| 
      
       
 
       
      
       
 | 
      
      
      
        
          IsPDFFile
        
        
         
        DescriptionVerifies
whether a PDF file is valid. 
 
ReturnsTrue,
if the value returns a valid PDF file. False, otherwise. 
 
Function syntaxIsPDFFile("path")
 
See alsoIsDate, IsImage, IsImageFile, IsNumeric, IsNumericDate, IsObject, IsPDFObject, IsQuery, IsSimpleValue, IsStruct, IsWDDX, IsXmlDoc, IsXmlElem, IsXmlRoot, cfpdf, cfpdfform, cfprint 
 
HistoryColdFusion
8: Added this function. 
 
Parameters
Parameter 
 | 
Description 
 | 
 
path 
 | 
Pathname to an on-disk or in-memory PDF
file. The pathname can be absolute or relative to the CFM page and must
be enclosed in quotation marks. 
 | 
 
 
 
 
UsageThis function
returns False if the value is not a valid pathname to a PDF file,
the pathname is null, the PDF file is not valid, or the PDF file
is corrupted. 
 
Example<!--- The following code shows the action page for a form where a user chooses a PDF document to print. ---> 
 
<cfif IsPDFFile("#form.printMe#")> 
        <cfprint type="PDF" source="#myPDF#"> 
<cfelse> 
    <p>This is not a valid PDF file or the PDF document you have chosen is not available.</p> 
</cfif>
 
 
        
         
        
        
       
      
 |