IsTextPDF
Description
Description
Determines if a PDF file contains text. Some PDF files contain only images or in the case of scanned documents images of text that require OCR prior to processing.
Syntax
Syntax
Function IsTextPDF(file)
file (input) - the file that you want to check
Return value
Return value
This function returns a boolean true false result.
Sample
'---------- Start ----------
Function Start
if target.file.IsTextPDF( "C:\FileTestFolder\trgFileSample.txt" ) = true then
trg.Message( "The file is a pdf" )
else trg.Message( "This file is not a pdf" )
end if
End Function
See also