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

Allows to get the number of pages of an existing PDF.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('PDFCOUNT')

CHGVAR

VAR(&PARM1) VALUE('File="Path of the PDF file"')

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, for which we want to know the number of pages.

 

 

 

In return of the command, we will have the number of pages of the PDF file.

Example:

PageCount=00002

 

 

 

Example

  

LNCCMDR    CMD(PDFCOUNT) PARM1('File="c:\A\b.pdf"') +

             RESULT(&RESULT)                         

 

&RESULT will contain the following value : PageCount=00002.