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.
|
void |
dispose()
Disposes the facade.
|
void |
doConvert()
Do some initial works for converting a pdf document to images.
|
int |
getEndPage()
Gets end position which you want to convert.
|
int |
getFormPresentationMode()
Gets or sets form presentation mode.
|
void |
getNextImage(OutputStream outputStream)
Saves image to stream with default image format - jpeg.
|
void |
getNextImage(OutputStream outputStream,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format)
Saves image to stream with given image format.
|
void |
getNextImage(OutputStream outputStream,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
double imageWidth,
double imageHeight,
int quality)
Saves image to stream with the givin image format, size and quality.
|
void |
getNextImage(OutputStream outputStream,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
int quality)
Saves image to stream with given image format and quality.
|
void |
getNextImage(OutputStream outputStream,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
int imageWidth,
int imageHeight)
Saves image to stream with the givin image format, size and quality.
|
void |
getNextImage(OutputStream outputStream,
com.aspose.ms.System.Drawing.Imaging.ImageFormat 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,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format)
Saves image to stream with given page size.
|
void |
getNextImage(OutputStream outputStream,
PageSize pageSize,
com.aspose.ms.System.Drawing.Imaging.ImageFormat 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,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format)
Saves image to file with the givin image format.
|
void |
getNextImage(String outputFile,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
double imageWidth,
double imageHeight,
int quality)
Saves image to file with the givin image format, image size, and quality.
|
void |
getNextImage(String outputFile,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
int quality)
Saves image to file with given image format and quality.
|
void |
getNextImage(String outputFile,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format,
int imageWidth,
int imageHeight)
Saves image to file with the given image format and dimensions.
|
void |
getNextImage(String outputFile,
com.aspose.ms.System.Drawing.Imaging.ImageFormat 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,
com.aspose.ms.System.Drawing.Imaging.ImageFormat format)
Saves image to file with given page size and image format.
|
void |
getNextImage(String outputFile,
PageSize pageSize,
com.aspose.ms.System.Drawing.Imaging.ImageFormat 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 or sets rendering options.
|
Resolution |
getResolution()
Gets resolution during convertting.
|
boolean |
getShowHiddenAreas()
Gets or sets flag that controls visibility of hidden areas on the page.
|
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.
|
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 |
setEndPage(int value)
Sets end position which you want to convert.
|
void |
setFormPresentationMode(int value) |
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) |
void |
setResolution(Resolution value)
Sets resolution during convertting.
|
void |
setShowHiddenAreas(boolean value) |
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 boolean getShowHiddenAreas()
Gets or sets flag that controls visibility of hidden areas on the page.
public void setShowHiddenAreas(boolean value)
public RenderingOptions getRenderingOptions()
Gets or sets rendering options.
public void setRenderingOptions(RenderingOptions value)
public int getFormPresentationMode()
Gets or sets form presentation mode.
public void setFormPresentationMode(int value)
public Resolution getResolution()
Gets resolution during convertting. The higher resolution, the slower convertting speed. The default value is 150.
public void setResolution(Resolution value)
Sets resolution during convertting. The higher resolution, the slower convertting speed. The default value is 150.
public 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)
public 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)
public void setRangeOfPages(int startPage, int EndPage)
Sets range of pages between of which you want to convert.
public String getPassword()
Gets document OwnerPassword.
public void setPassword(String value)
Sets document OwnerPassword.
public String getUserPassword()
Gets document UserPassword.
public void setUserPassword(String value)
Sets document UserPassword.
public int getPageCount()
Gets the page count.
public void doConvert()
Do some initial works for converting a pdf document to images.
[C#] 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++; } [Visual Basic] Dim converter As PdfConverter = New PdfConverter() converter.BindPdf("D:\Test\test.pdf") converter.DoConvert() Dim prefix As String = "D:\Test\" Dim suffix As String = ".jpg" Dim imageCount As Integer = 1 While converter.HasNextImage() converter.GetNextImage(prefix + imageCount + suffix) imageCount = imageCount + 1 End While
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.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.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.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.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.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.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.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.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 void getNextImage(String outputFile, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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.
[C#] 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.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.converter
- External converterpublic void getNextImage(String outputFile, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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 highestpublic void getNextImage(OutputStream outputStream, PageSize pageSize, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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, com.aspose.ms.System.Drawing.Imaging.ImageFormat 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 highestCopyright © 2020 Aspose. All Rights Reserved.