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

Allows to extract some pages of an existing PDF to create another one.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('PDFEXTRACT')

CHGVAR

VAR(&PARM1) VALUE('

Dest="Path of the new PDF";

Origin="Path of the original PDF";

StartPage=page number of the fisrt page to extract;

EndPage=page number of the last page to extract

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

 

 Parameters

 

Parameters

 

Parm1
or

Parm2

Dest: Complete path of the new PDF, containing some pages of the original PDF.

 

Origin: Complete path of the original PDF from which we want to extract some pages.

 

StartPage : number of the first page of the original PDF to extract.

 

EndPage : number of the last page of the original PDF to extract.

 

 

 

 

Example

 

LNCCMD     CMD(PDFEXTRACT) +                             

             PARM1('Dest="c:\A\res_5.pdf";Origin="C:\A\r+

             es.pdf";StartPage=1;EndPage=2')             

 

 

The « res_5.pdf » PDF will contain the pages #1 and #2 of the « res.pdf » PDF.