runGhostscriptCommand
public static void runGhostscriptCommand(int firstPage,
int lastPage,
int resolution,
int outputWidth,
int outputHeight,
java.io.File fileToConvert,
java.io.File outTempFile,
boolean forThumbnails,
java.io.OutputStream output,
java.lang.String targetMimetype,
GhostscriptTransformationRequestContext gstrCtx)
Runs a Ghostscript command to convert the specified page, saving a new png file.
- Parameters:
firstPage
- The first page to convert.
lastPage
- The last page to convert.
resolution
- The desired resolution of the output png file.
outputWidth
- The desired width in pixels of the output image. Optional.
outputHeight
- The desired height in pixels of the output image. Optional.
fileToConvertName
- The path/name of the file to be converted.
outTempfileName
- The optional path/name of output file to use (debug mode only)
forThumbnails
- Whether or not to render thumbnails for the document.
output
- The stream we use to write to the output file.
targetMimetype
- The mimetype that the image will be transformed to.