PdfConverter.GetNextImage
GetNextImage(string)
Saves image to file with default image format - jpeg.
public void GetNextImage(string outputFile)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, PageSize)
Saves image to file with ith given page size and default image format - jpeg.
public void GetNextImage(string outputFile, PageSize pageSize)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
pageSize | PageSize | The page size of the image. |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, ImageFormat)
Saves image to file with the givin image format.
public void GetNextImage(string outputFile, ImageFormat format)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
format | ImageFormat | The format of the image. |
Examples
[C#]
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++;
}
[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 = ".png"
Dim imageCount As Integer = 1
While converter.HasNextImage()
converter.GetNextImage(prefix + imageCount + suffix, ImageFormat.Png)
imageCount = imageCount + 1
End While
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, PageSize, ImageFormat)
Saves image to file with given page size and image format.
public void GetNextImage(string outputFile, PageSize pageSize, ImageFormat format)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
pageSize | PageSize | The page size of the image. |
format | ImageFormat | The format of the image. |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream)
Saves image to stream with default image format - jpeg.
public void GetNextImage(Stream outputStream)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, PageSize)
Saves image to stream with given page size.
public void GetNextImage(Stream outputStream, PageSize pageSize)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
pageSize | PageSize | The page size of the image. |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, ImageFormat)
Saves image to stream with given image format.
public void GetNextImage(Stream outputStream, ImageFormat format)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
format | ImageFormat | The format of the image. |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, PageSize, ImageFormat)
Saves image to stream with given page size.
public void GetNextImage(Stream outputStream, PageSize pageSize, ImageFormat format)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
pageSize | PageSize | The page size of the image. |
format | ImageFormat | The format of the image. |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, ImageFormat, int, int, int)
Saves image to file with the given image format, dimensions and quality.
public void GetNextImage(string outputFile, ImageFormat format, int imageWidth, int imageHeight,
int quality)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Int32 | The image width, the unit is pixel. |
imageHeight | Int32 | The image height, the unit is pixel. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
Examples
[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, ImageFormat.Jpeg, 800, 1000, 50);
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, ImageFormat.Jpeg, 800, 1000, 50)
imageCount = imageCount + 1
End While
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, ImageFormat, int, int, int)
Saves image to stream with the givin image format, dimensions and quality.
public void GetNextImage(Stream outputStream, ImageFormat format, int imageWidth, int imageHeight,
int quality)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Int32 | The image width, the unit is pixel. |
imageHeight | Int32 | The image height, the unit is pixel. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, ImageFormat, double, double, int)
Saves image to file with the givin image format, image size, and quality.
public void GetNextImage(string outputFile, ImageFormat format, double imageWidth,
double imageHeight, int quality)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Double | The image width, the unit is pixels. |
imageHeight | Double | The image height, the unit is pixels.. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
Examples
[C#]
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++;
}
[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 pixelX As float =800
Dim pixelY As float=600
Dim imageCount As Integer = 1
While converter.HasNextImage()
converter.GetNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, pixelX, pixelY, 50)
imageCount = imageCount + 1
End While
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, ImageFormat, double, double, int)
Saves image to stream with the givin image format, size and quality.
public void GetNextImage(Stream outputStream, ImageFormat format, double imageWidth,
double imageHeight, int quality)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Double | The image width, the unit is pixel. |
imageHeight | Double | The image height, the unit is pixel. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, ImageFormat, int, int)
Saves image to file with the given image format and dimensions.
public void GetNextImage(string outputFile, ImageFormat format, int imageWidth, int imageHeight)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Int32 | The image width, the unit is pixel. |
imageHeight | Int32 | The image height, the unit is pixel. |
Examples
[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, ImageFormat.Jpeg, 800, 1000);
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, ImageFormat.Jpeg, 800, 1000)
imageCount = imageCount + 1
End While
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, ImageFormat, int, int)
Saves image to stream with the givin image format, size and quality.
public void GetNextImage(Stream outputStream, ImageFormat format, int imageWidth, int imageHeight)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
format | ImageFormat | The format of the image. |
imageWidth | Int32 | The image width, the unit is pixel. |
imageHeight | Int32 | The image height, the unit is pixel. |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, ImageFormat, int)
Saves image to stream with given image format and quality.
public void GetNextImage(Stream outputStream, ImageFormat format, int quality)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
format | ImageFormat | The format of the image. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(Stream, PageSize, ImageFormat, int)
Saves image to stream with given page size, image format and quality.
public void GetNextImage(Stream outputStream, PageSize pageSize, ImageFormat format, int quality)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The stream to save the image. |
pageSize | PageSize | The page size of the image. |
format | ImageFormat | The format of the image. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, ImageFormat, int)
Saves image to file with given image format and quality.
public void GetNextImage(string outputFile, ImageFormat format, int quality)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
format | ImageFormat | The format of the image. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
GetNextImage(string, PageSize, ImageFormat, int)
Saves image to file with given page size, image format and quality.
public void GetNextImage(string outputFile, PageSize pageSize, ImageFormat format, int quality)
Parameter | Type | Description |
---|---|---|
outputFile | String | The file path and name to save the image. |
pageSize | PageSize | The page size of the image. |
format | ImageFormat | The format of the image. |
quality | Int32 | The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest |
See Also
- class PageSize
- class PdfConverter
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF