SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.file‎ > ‎

IsTextPDF


Platform Objects


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


Function IsTextPDF(file)

file (input) - the file that you want to check

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


Platform Objects and Methods
target.file.IsLocked
target.file.Move
target.file