-
Install the PDF utility:
- Locate the zip file at this directory path:
- Windows
- ..\server\Apps\ApparelAccelerator\<VERSION>\win_b64\PDFTools\
- UNIX
- ../server/Apps/ApparelAccelerator/<VERSION>/linux_a64/PDFTools/
- Unzip the zip or tar file to any location.
- Windows
- P2IS-R2-460x64.zip
- UNIX
- P2IS460Linux26GCC45x64.tar
- Make sure the utility folder has write access.
- Make sure the executable has execute access.
- Use the command line to test the utility:
- Open a command window.
- Go to the executable path for the utility (where you unzipped it above).
- Copy a PDF or AI file to the executable directory.
- Execute the following command:
- Windows
pdf2imgR2 INPUT.pdf OUTPUT.jpg -pgs 1 -d 300 -lk LICENSE_KEY
- UNIX
./pdf2img INPUT.pdf OUTPUT.jpg -pgs 1 -d 300 -lk LICENSE_KEY
where: INPUT.pdf is the file you copied into the directory (PDF used as an example).OUTPUT.jpg is the name of the JPG file to create.LICENSE_KEY is the value in the license-key.txt file.
- View the
OUTPUT.jpg file to verify the conversion.
- Create or update the emxComponents.properties page object. For more information, see Editing Properties Using MQL.
-
Add or edit this line:
emxComponents.ImageManager.PDFImageUtility.Directory=
-
Set the value for this property to the full directory path to the executable in the location where you unzipped the files above. Use the full path from the system root.
For example: - Windows:
emxComponents.ImageManager.PDFImageUtility.Directory=D:/PDFTool/tool_24sep/bin - Linux:
emxComponents.ImageManager.PDFImageUtility.Directory=/home/data/P2IS460Linux26GCC45x64/bin
-
Add or edit this line:
emxComponents.ImageManager.PDFImageUtility.SupportedFormats=pdf,ai
If required, you can omit one of the formats.
-
Add or edit this line:
emxComponents.ImageManager.PDFImageUtility.Arguments=-d,300,-lk, LICENSE_KEY,-pgs,1
Replace LICENSE_KEY with the value in the license-key.txt file. For example: - Windows:
emxComponents.ImageManager.PDFImageUtility.Arguments=-d,300,-lk,0-CCA67-BMMNA-ST38K-2QDJA-8U25V-7GREF,-pgs,1 - Linux:
emxComponents.ImageManager.PDFImageUtility.Arguments=-d,300,-lk,0-LLAAB-BKCN9-NB2ST-219J6-SU4CV-4L9EC,-pgs,1
-
Add or edit this line:
emxComponents.ImageManager.PDFImageUtility.ExecutableName=
Use the property value exactly as shown for your operating system. For example: - Windows:
emxComponents.ImageManager.PDFImageUtility.ExecutableName=pdf2imgR2 - Linux:
emxComponents.ImageManager.PDFImageUtility.ExecutableName=pdf2img
-
Add or edit this line:
emxComponents.ImageManager.PDFImageUtility.Name=PDF-Tool
Use the property value exactly as shown.
-
When finished updating the text file with all properties you want to modify, including the ones shown here, use the text file to modify the emxComponents.properties page object. For more information, see Editing Properties Using MQL.
|