001 /** 002 * Implements the CFML Function isdate 003 */ 004 package railo.runtime.functions.decision; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.ext.function.Function; 008 import railo.runtime.text.pdf.PDFUtil; 009 010 public final class IsPDFObject implements Function { 011 public static boolean call(PageContext pc , Object value) { 012 try { 013 PDFUtil.toPdfReader(pc,value,null); 014 } 015 catch (Exception e) { 016 return false; 017 } 018 return true; 019 } 020 021 022 023 }