PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > PDFSEARCH command
PDFSEARCH command

Allows to search text into the content of a PDF file.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('PDFSEARCH')

CHGVAR

VAR(&PARM1) VALUE('

File="Path of the PDF file";

Text=text to search

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

 

Parameters

 

Parameters

 

Parm1
or

Parm2

 

 

 

 

 

RESULT

File: Complete path of the PDF file (between double quotes).

 

Text: Text to search into the content of the PDF file (without double quotes).

 

 

 

 

In return:

-      true: if the text is found

-      false: if the text is not found.

 

 

 

Example

 

LNCCMDR    CMD(PDFSEARCH) +                           

              PARM1('File="c:\A\res.pdf";Text=Erica') +

              RESULT(&RESULT)