Create a JPG image for each page of a PDF file.
Syntax
CHGVAR |
VAR(&CMD) VALUE('PDFTOIM') |
CHGVAR |
VAR(&PARM1) VALUE(' [;StartPage=page number of the fisrt page to extract] [;EndPage=page number of the last page to extract] [;PWD="password
if necessary"] |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
File: Complete path of the PDF file. StartPage : number of the first page of the PDF to convert. EndPage : number of the last page of the PDF to convert. PWD: If the document is protected, set the user password. |
|
|
Note
JPG files will be created in the same place as the PDF file.
They will have the same name as the PDF file with suffix, the number of the page.
Example:
if the PDF is named "R_01WORD.PDF", then the JPEG files created next
to the PDF will have the following names:
R_01WORD2.jpg, R_01WORD3.jpg, R_01WORD4.jpg ...
Example
LNCCMD CMD(PDFTOIM) + PARM1('File="C:\A\PDFTOIMG\R_01WORD.PDF";StartPage=2;EndPage=4')