Function Reference
GetInfo
Gets image information of file path: 'imageFilePath'.
Syntax:
wwimageinfo:GetInfo($imageFilePath)Parameters:
Name | Type | Description |
|---|---|---|
imageFilePath | string | Full pathname of the image file. |
Returns:
XPathNodeIterator: Image info node set.MapPDFLinks
Map PDF links.
Syntax:
wwimageinfo:MapPDFLinks($fileTable, $fileToFix, $fileToWrite, $originalFilePath, $outputFilePath, $useAbsPath)Parameters:
Name | Type | Description |
|---|---|---|
fileTable | object | Node set of links to update. |
fileToFix | string | The file to fix. |
fileToWrite | string | The file to write. |
originalFilePath | string | Full pathname of the original file. |
outputFilePath | string | Full pathname of the output file. |
useAbsPath | bool | True to use abs path. |
MergePDFs
This merges a set of PDFs and/or PostScript files into one PDF.
Syntax:
wwimageinfo:MergePDFs($sourceFileList, $targetFilePath)
wwimageinfo:MergePDFs($sourceFileList, $fileTable, $targetFilePath)Parameters:
Name | Type | Description |
|---|---|---|
sourceFileList | object | List of source files. |
targetFilePath | string | Full pathname of the target file. |
fileTable | object | Node set of links to update. |
Returns:
bool: True if it succeeds, false if it fails.PostScriptToPDF
Convert the specified PostScript file to a PDF.
Syntax:
wwimageinfo:PostScriptToPDF($postScriptFilePath, $pdfJobSettings, $pdfFilePath)Parameters:
Name | Type | Description |
|---|---|---|
postScriptFilePath | string | Full pathname of the post script file. |
pdfJobSettings | string | The PDF job settings. |
pdfFilePath | string | Full pathname of the PDF file. |
Returns:
bool: True if it succeeds, false if it fails.RasterizePostScript
Render a PostScript file to a known image format such as BMP, JPEG, PNG, or GIF.
Syntax:
wwimageinfo:RasterizePostScript($postScriptFilePath, $renderHorizontalDPI, $renderVerticalDPI, $renderWidth, $renderHeight, $targetImageFormatAsString, $targetImageColorDepth, $targetImageGrayscale, $targetImageTransparent, $targetImageInterlaced, $targetImageQuality, $targetFilePath)
wwimageinfo:RasterizePostScript($postScriptFilePath, $watermark, $renderHorizontalDPI, $renderVerticalDPI, $renderWidth, $renderHeight, $targetImageFormatAsString, $targetImageColorDepth, $targetImageGrayscale, $targetImageTransparent, $targetImageInterlaced, $targetImageQuality, $targetFilePath)Parameters:
Name | Type | Description |
|---|---|---|
postScriptFilePath | string | Full pathname of the post script file. |
renderHorizontalDPI | int | The render horizontal DPI. |
renderVerticalDPI | int | The render vertical DPI. |
renderWidth | int | Width of the render. |
renderHeight | int | Height of the render. |
targetImageFormatAsString | string | Target image format as string. |
targetImageColorDepth | int | Depth of the target image color. |
targetImageGrayscale | bool | True to target image grayscale. |
targetImageTransparent | bool | True to target image transparent. |
targetImageInterlaced | bool | True if target image interlaced. |
targetImageQuality | int | Target image quality. |
targetFilePath | string | Full pathname of the target file. |
watermark | bool | True to apply watermark to the output image. |
Returns:
XPathNodeIterator: Image info node set.Transform
Create a new version of an image with a different format or with different dimensions.
Syntax:
wwimageinfo:Transform($inputImageFilePath, $outputImageFormat, $outputImageWidth, $outputImageHeight, $outputImageFilePath)
wwimageinfo:Transform($inputImageFilePath, $outputImageFormatAsString, $Choice_outputImageQuality_outputImageWidth, $Choice_outputImageWidth_outputImageHeight, $Choice_outputImageHeight_outputImageFilePath, $Choice_outputImageFilePath_outputResolution)
wwimageinfo:Transform($inputImageFilePath, $outputImageFormatAsString, $outputImageQuality, $outputImageWidth, $outputImageHeight, $outputImageFilePath, $outputResolution)Parameters:
Name | Type | Description |
|---|---|---|
inputImageFilePath | string | Full pathname of the input image file. |
outputImageFormat | string | The output image format. |
outputImageWidth | int | Width of the output image. |
outputImageHeight | int | Height of the output image. |
outputImageFilePath | string | Full pathname of the output image file. |
outputImageFormatAsString | string | The output image format as string. |
Choice_outputImageQuality_outputImageWidth | int |
Width of the choice output image quality output image. | |
Choice_outputImageWidth_outputImageHeight | int | Height of the choice output image width output image. | | Choice_outputImageHeight_outputImageFilePath | string | Full pathname of the choice output image height output image file. | | Choice_outputImageFilePath_outputResolution | string | The choice output image file path output resolution. | | outputImageQuality | int | The output image quality. | | outputResolution | int | The output resolution. |Returns:
XPathNodeIterator: Image info node set.Last modified date: 01/12/2026