Constructor and Description |
---|
PdfConverter()
Initializes new
PdfConverter object. |
PdfConverter(IDocument document)
Initializes new
PdfConverter object on base of the document . |
Modifier and Type | Method and Description |
---|---|
void |
bindPdf(InputStream inputStream)
Binds a Pdf Stream for convert.
|
void |
bindPdf(String inputFile)
Binds a Pdf file for converting.
|
void |
close()
Close the instance of PdfConverter and release the resources.
|
com.aspose.ms.System.IO.MemoryStream |
convertPageToPNGMemoryStream(Page page)
For internal usage only
|
void |
dispose()
Close the instance of PdfConverter and release the resources.
|
void |
doConvert()
Do some initial works for converting a pdf document to images.
|
int |
getCoordinateType()
Gets the page coordinate type (Media/Crop boxes).
|
int |
getEndPage()
Gets end position which you want to convert.
|
int |
getFormPresentationMode()
Gets form presentation mode.
|
void |
getNextImage(OutputStream outputStream)
Saves image to stream with default image format - jpeg.
|
void |
getNextImage(OutputStream outputStream,
ImageType format)
Saves image to stream with given image format.
|
void |
getNextImage(OutputStream outputStream,
ImageType format,
double imageWidth,
double imageHeight,
int quality)
Saves image to stream with the givin image format, size and quality.
|
void |
getNextImage(OutputStream outputStream,
ImageType format,
int quality)
Saves image to stream with given image format and quality.
|
void |
getNextImage(OutputStream outputStream,
ImageType format,
int imageWidth,
int imageHeight)
Saves image to stream with the givin image format, size and quality.
|
void |
getNextImage(OutputStream outputStream,
ImageType format,
int imageWidth,
int imageHeight,
int quality)
Saves image to stream with the givin image format, dimensions and quality.
|
void |
getNextImage(OutputStream outputStream,
PageSize pageSize)
Saves image to stream with given page size.
|
void |
getNextImage(OutputStream outputStream,
PageSize pageSize,
ImageType format)
Saves image to stream with given page size.
|
void |
getNextImage(OutputStream outputStream,
PageSize pageSize,
ImageType format,
int quality)
Saves image to stream with given page size, image format and quality.
|
void |
getNextImage(String outputFile)
Saves image to file with default image format - jpeg.
|
void |
getNextImage(String outputFile,
ImageType format)
Saves image to file with the givin image format.
|
void |
getNextImage(String outputFile,
ImageType format,
double imageWidth,
double imageHeight,
int quality)
Saves image to file with the givin image format, image size, and quality.
|
void |
getNextImage(String outputFile,
ImageType format,
int quality)
Saves image to file with given image format and quality.
|
void |
getNextImage(String outputFile,
ImageType format,
int imageWidth,
int imageHeight)
Saves image to file with the given image format and dimensions.
|
void |
getNextImage(String outputFile,
ImageType format,
int imageWidth,
int imageHeight,
int quality)
Saves image to file with the given image format, dimensions and quality.
|
void |
getNextImage(String outputFile,
PageSize pageSize)
Saves image to file with ith given page size and default image format - jpeg.
|
void |
getNextImage(String outputFile,
PageSize pageSize,
ImageType format)
Saves image to file with given page size and image format.
|
void |
getNextImage(String outputFile,
PageSize pageSize,
ImageType format,
int quality)
Saves image to file with given page size, image format and quality.
|
int |
getPageCount()
Gets the page count.
|
String |
getPassword()
Gets document OwnerPassword.
|
RenderingOptions |
getRenderingOptions()
Gets rendering options.
|
Resolution |
getResolution()
Gets resolution during converting.
|
int |
getStartPage()
Gets start position which you want to convert.
|
String |
getUserPassword()
Gets document UserPassword.
|
boolean |
hasNextImage()
Indicates whether the pdf file has more images or not.
|
boolean |
isShowHiddenAreas()
Deprecated.
|
void |
saveAsTIFF(OutputStream outputStream)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
int compressionType)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
|
void |
saveAsTIFF(OutputStream outputStream,
int imageWidth,
int imageHeight)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
int imageWidth,
int imageHeight,
int compressionType)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
int imageWidth,
int imageHeight,
TiffSettings settings)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
int imageWidth,
int imageHeight,
TiffSettings settings,
IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
PageSize pageSize)
Converts each pages of a pdf document to images with page size and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
PageSize pageSize,
TiffSettings settings)
Converts each pages of a pdf document to images with page size and saves images to a single
TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
TiffSettings settings)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
|
void |
saveAsTIFF(OutputStream outputStream,
TiffSettings settings,
IIndexBitmapConverter converter)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
|
void |
saveAsTIFF(String outputFile)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
|
void |
saveAsTIFF(String outputFile,
int compressionType)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
|
void |
saveAsTIFF(String outputFile,
int imageWidth,
int imageHeight)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
int imageWidth,
int imageHeight,
int compressionType)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
int imageWidth,
int imageHeight,
TiffSettings settings)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
int imageWidth,
int imageHeight,
TiffSettings settings,
IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with dimensions, and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
PageSize pageSize)
Converts each pages of a pdf document to images with page size and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
PageSize pageSize,
TiffSettings settings)
Converts each pages of a pdf document to images with page size and saves images to a single
TIFF file.
|
void |
saveAsTIFF(String outputFile,
TiffSettings settings)
Converts each pages of a pdf document to images with and saves images to a single TIFF file.
|
void |
saveAsTIFF(String outputFile,
TiffSettings settings,
IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with and saves images to a single TIFF file.
|
void |
saveAsTIFFClassF(OutputStream outputStream)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF
stream.
|
void |
saveAsTIFFClassF(OutputStream outputStream,
int imageWidth,
int imageHeight)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF
stream.
|
void |
saveAsTIFFClassF(OutputStream outputStream,
PageSize pageSize)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF
stream.
|
void |
saveAsTIFFClassF(String outputFile)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
|
void |
saveAsTIFFClassF(String outputFile,
int imageWidth,
int imageHeight)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
|
void |
saveAsTIFFClassF(String outputFile,
PageSize pageSize)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
|
void |
setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes).
|
void |
setEndPage(int value)
Sets end position which you want to convert.
|
void |
setFormPresentationMode(int value)
Sets form presentation mode.
|
void |
setPassword(String value)
Sets document OwnerPassword.
|
void |
setRangeOfPages(int startPage,
int EndPage)
Sets range of pages between of which you want to convert.
|
void |
setRenderingOptions(RenderingOptions value)
Sets rendering options.
|
void |
setResolution(Resolution value)
Sets resolution during converting.
|
void |
setShowHiddenAreas(boolean value)
Deprecated.
|
void |
setStartPage(int value)
Sets start position which you want to convert.
|
void |
setUserPassword(String value)
Sets document UserPassword.
|
bindPdf, bindPdf, bindPdf, getDocument
public PdfConverter()
Initializes new PdfConverter
object.
public PdfConverter(IDocument document)
Initializes new PdfConverter
object on base of the document
.
document
- Pdf document.public int getCoordinateType()
Gets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
PageCoordinateType
public void setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
value
- PageCoordinateType elementPageCoordinateType
@Deprecated public boolean isShowHiddenAreas()
Gets flag that controls visibility of hidden areas on the page. Method is Deprecated.
@Deprecated public void setShowHiddenAreas(boolean value)
public RenderingOptions getRenderingOptions()
Gets rendering options.
public void setRenderingOptions(RenderingOptions value)
Sets rendering options.
value
- rendering options.public int getFormPresentationMode()
Gets form presentation mode.
FormPresentationMode
public void setFormPresentationMode(int value)
Sets form presentation mode.
value
- form presentation mode.FormPresentationMode
public Resolution getResolution()
Gets resolution during converting. The higher resolution, the slower converting speed. The default value is 150.
public void setResolution(Resolution value)
Sets resolution during converting. The higher resolution, the slower converting speed. The default value is 150.
value
- Resolution elementpublic int getStartPage()
Gets start position which you want to convert. The minimal value is 1.
public void setStartPage(int value)
Sets start position which you want to convert. The minimal value is 1.
use setEndPage(int) before setStartPage(int)
value
- int valuepublic int getEndPage()
Gets end position which you want to convert.
public void setEndPage(int value)
Sets end position which you want to convert.
use setEndPage(int) before setStartPage(int)
value
- int valuepublic void setRangeOfPages(int startPage, int EndPage)
Sets range of pages between of which you want to convert.
startPage
- int valueEndPage
- int valuepublic String getPassword()
Gets document OwnerPassword.
public void setPassword(String value)
Sets document OwnerPassword.
value
- String valuepublic String getUserPassword()
Gets document UserPassword.
public void setUserPassword(String value)
Sets document UserPassword.
value
- String valuepublic int getPageCount()
Gets the page count.
public void doConvert()
Do some initial works for converting a pdf document to images.
PdfConverter converter = new PdfConverter(); converter.bindPdf("D:\\Test\\test.pdf"); converter.doConvert(); String prefix = "D:\\Test\\"; String suffix = ".jpg"; int imageCount = 1; while (converter.hasNextImage()) { converter.getNextImage(prefix + imageCount + suffix); imageCount++; }
public void saveAsTIFF(String outputFile)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.doConvert(); converter.saveAsTIFF(@"D:\Test\test.tiff");
outputFile
- The file to save the TIFF image.public void saveAsTIFF(String outputFile, int compressionType)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.doConvert(); converter.saveAsTIFF(@"D:\Test\test.tiff");
outputFile
- The output file.compressionType
- Type of the compression.CompressionType
public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imageimageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void saveAsTIFF(String outputFile, PageSize pageSize)
Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imagepageSize
- The page size of the image.public void saveAsTIFF(String outputFile, PageSize pageSize, TiffSettings settings)
Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imagepageSize
- The page size of the image.settings
- Settings object that defines TIFF parameters.public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, int compressionType)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imageimageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.compressionType
- Type of the compression.CompressionType
public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imageimageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.settings
- Settings object that defines TIFF parameters.public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imageimageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.settings
- Settings object that defines TIFF parameters.converter
- External converterpublic void saveAsTIFFClassF(String outputFile, int imageWidth, int imageHeight)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.doConvert(); converter.saveAsTIFFClassF(@"D:\Test\test.tiff",204,196);
outputFile
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void saveAsTIFFClassF(String outputFile, PageSize pageSize)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
outputFile
- The stream to save the TIFF image.pageSize
- The page size of the image.public void saveAsTIFFClassF(OutputStream outputStream, int imageWidth, int imageHeight)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
outputStream
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void saveAsTIFFClassF(OutputStream outputStream, PageSize pageSize)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
outputStream
- The stream to save the TIFF image.pageSize
- The page size of the image.public void saveAsTIFF(OutputStream outputStream)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.public void saveAsTIFF(OutputStream outputStream, int compressionType)
Converts each pages of a pdf document to images and saves images to a single TIFF file.
outputStream
- The output stream.compressionType
- Type of the compression.public void saveAsTIFF(OutputStream outputStream, PageSize pageSize)
Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.pageSize
- The page size of the image.public void saveAsTIFF(OutputStream outputStream, PageSize pageSize, TiffSettings settings)
Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.pageSize
- The page size of the image.settings
- Settings object that defines TIFF parameters.public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, int compressionType)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.compressionType
- Type of the compression.public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.settings
- Settings object that defines TIFF parameters.public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.settings
- Settings object that defines TIFF parameters.converter
- External converterpublic boolean hasNextImage()
Indicates whether the pdf file has more images or not.
public void getNextImage(String outputFile)
Saves image to file with default image format - jpeg.
outputFile
- The file path and name to save the image.public void getNextImage(String outputFile, PageSize pageSize)
Saves image to file with ith given page size and default image format - jpeg.
outputFile
- The file path and name to save the image.pageSize
- The page size of the image.public com.aspose.ms.System.IO.MemoryStream convertPageToPNGMemoryStream(Page page)
page
- Internal objectpublic void getNextImage(String outputFile, ImageType format)
Saves image to file with the givin image format.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.DoConvert(); String prefix = @"D:\Test\"; String suffix = ".png"; int imageCount = 1; while (converter.HasNextImage()) { converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Png); imageCount++; }
outputFile
- The file path and name to save the image.format
- The format of the image.public void getNextImage(String outputFile, PageSize pageSize, ImageType format)
Saves image to file with given page size and image format.
outputFile
- The file path and name to save the image.pageSize
- The page size of the image.format
- The format of the image.public void getNextImage(OutputStream outputStream)
Saves image to stream with default image format - jpeg.
outputStream
- The stream to save the image.public void getNextImage(OutputStream outputStream, PageSize pageSize)
Saves image to stream with given page size.
outputStream
- The stream to save the image.pageSize
- The page size of the image.public void getNextImage(OutputStream outputStream, ImageType format)
Saves image to stream with given image format.
outputStream
- The stream to save the image.format
- The format of the image.public void getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format)
Saves image to stream with given page size.
outputStream
- The stream to save the image.pageSize
- The page size of the image.format
- The format of the image.public void getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight, int quality)
Saves image to file with the given image format, dimensions and quality.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.doConvert(); String prefix = @"D:\Test\"; String suffix = ".jpg"; int imageCount = 1; while (converter.HasNextImage()) { converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, 800, 1000, 50); imageCount++; }
outputFile
- The file path and name to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight, int quality)
Saves image to stream with the givin image format, dimensions and quality.
outputStream
- The stream to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void getNextImage(String outputFile, ImageType format, double imageWidth, double imageHeight, int quality)
Saves image to file with the givin image format, image size, and quality.
PdfConverter converter = new PdfConverter(); converter.bindPdf(@"D:\Test\test.pdf"); converter.doConvert(); String prefix = @"D:\Test\"; String suffix = ".jpg"; int imageCount = 1; float pixelX=800f; float pixelY=600f; while (converter.HasNextImage()) { converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, pixelX, pixelY, 50); imageCount++; }
outputFile
- The file path and name to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixels.imageHeight
- The image height, the unit is pixels..quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void getNextImage(OutputStream outputStream, ImageType format, double imageWidth, double imageHeight, int quality)
Saves image to stream with the givin image format, size and quality.
outputStream
- The stream to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void bindPdf(String inputFile)
Binds a Pdf file for converting.
public void bindPdf(InputStream inputStream)
Binds a Pdf Stream for convert.
public void close()
Close the instance of PdfConverter and release the resources.
public void saveAsTIFFClassF(String outputFile)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
PdfConverter converter = new PdfConverter(); converter.bindPdf("D:\\Test\\test.pdf"); converter.doConvert(); converter.saveAsTIFFClassF("D:\\Test\\test.tiff");
outputFile
- The stream to save the TIFF image.public void saveAsTIFFClassF(OutputStream outputStream)
Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
outputStream
- The stream to save the TIFF image.public void saveAsTIFF(String outputFile, TiffSettings settings)
Converts each pages of a pdf document to images with and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imagesettings
- Settings.public void saveAsTIFF(String outputFile, TiffSettings settings, IIndexBitmapConverter converter)
Converts each pages of a pdf document to images with and saves images to a single TIFF file.
outputFile
- The file name to save the TIFF imagesettings
- Settings.converter
- External converterpublic void saveAsTIFF(OutputStream outputStream, TiffSettings settings)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.settings
- Settings object that defines TIFF parameters.public void saveAsTIFF(OutputStream outputStream, TiffSettings settings, IIndexBitmapConverter converter)
Converts each pages of a pdf document to images and saves images to a single TIFF stream.
outputStream
- The stream to save the TIFF image.settings
- Settings object that defines TIFF parameters.converter
- External converterpublic void getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight)
Saves image to file with the given image format and dimensions.
PdfConverter converter = new PdfConverter(); converter.bindPdf("D:\\Test\\test.pdf"); converter.DoConvert(); String prefix = "D:\\Test\\"; String suffix = ".jpg"; int imageCount = 1; while (converter.hasNextImage()) { converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, 800, 1000); imageCount++; }
outputFile
- The file path and name to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight)
Saves image to stream with the givin image format, size and quality.
outputStream
- The stream to save the image.format
- The format of the image.imageWidth
- The image width, the unit is pixel.imageHeight
- The image height, the unit is pixel.public void getNextImage(OutputStream outputStream, ImageType format, int quality)
Saves image to stream with given image format and quality.
outputStream
- The stream to save the image.format
- The format of the image.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestImageType
public void getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format, int quality)
Saves image to stream with given page size, image format and quality.
outputStream
- The stream to save the image.format
- The format of the image.pageSize
- The page size of the image.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void getNextImage(String outputFile, ImageType format, int quality)
Saves image to file with given image format and quality.
outputFile
- The file path and name to save the image.format
- The format of the image.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highestpublic void getNextImage(String outputFile, PageSize pageSize, ImageType format, int quality)
Saves image to file with given page size, image format and quality.
outputFile
- The file path and name to save the image.pageSize
- The page size of the image.format
- The format of the image.quality
- The Jpeg file's quality (0~100), 0 is lowest and 100 is highest