PdfConverter.GetNextImage

GetNextImage(string)

Saves image to file with default image format - jpeg.

public void GetNextImage(string outputFile)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.

See Also


GetNextImage(string, PageSize)

Saves image to file with ith given page size and default image format - jpeg.

public void GetNextImage(string outputFile, PageSize pageSize)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
pageSizePageSizeThe page size of the image.

See Also


GetNextImage(string, ImageFormat)

Saves image to file with the givin image format.

public void GetNextImage(string outputFile, ImageFormat format)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
formatImageFormatThe 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


GetNextImage(string, PageSize, ImageFormat)

Saves image to file with given page size and image format.

public void GetNextImage(string outputFile, PageSize pageSize, ImageFormat format)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
pageSizePageSizeThe page size of the image.
formatImageFormatThe format of the image.

See Also


GetNextImage(Stream)

Saves image to stream with default image format - jpeg.

public void GetNextImage(Stream outputStream)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.

See Also


GetNextImage(Stream, PageSize)

Saves image to stream with given page size.

public void GetNextImage(Stream outputStream, PageSize pageSize)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
pageSizePageSizeThe page size of the image.

See Also


GetNextImage(Stream, ImageFormat)

Saves image to stream with given image format.

public void GetNextImage(Stream outputStream, ImageFormat format)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
formatImageFormatThe format of the image.

See Also


GetNextImage(Stream, PageSize, ImageFormat)

Saves image to stream with given page size.

public void GetNextImage(Stream outputStream, PageSize pageSize, ImageFormat format)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
pageSizePageSizeThe page size of the image.
formatImageFormatThe format of the image.

See Also


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)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
formatImageFormatThe format of the image.
imageWidthInt32The image width, the unit is pixel.
imageHeightInt32The image height, the unit is pixel.
qualityInt32The 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


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)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
formatImageFormatThe format of the image.
imageWidthInt32The image width, the unit is pixel.
imageHeightInt32The image height, the unit is pixel.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also


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)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
formatImageFormatThe format of the image.
imageWidthDoubleThe image width, the unit is pixels.
imageHeightDoubleThe image height, the unit is pixels..
qualityInt32The 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


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)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
formatImageFormatThe format of the image.
imageWidthDoubleThe image width, the unit is pixel.
imageHeightDoubleThe image height, the unit is pixel.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also


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)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
formatImageFormatThe format of the image.
imageWidthInt32The image width, the unit is pixel.
imageHeightInt32The 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


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)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
formatImageFormatThe format of the image.
imageWidthInt32The image width, the unit is pixel.
imageHeightInt32The image height, the unit is pixel.

See Also


GetNextImage(Stream, ImageFormat, int)

Saves image to stream with given image format and quality.

public void GetNextImage(Stream outputStream, ImageFormat format, int quality)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
formatImageFormatThe format of the image.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also


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)
ParameterTypeDescription
outputStreamStreamThe stream to save the image.
pageSizePageSizeThe page size of the image.
formatImageFormatThe format of the image.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also


GetNextImage(string, ImageFormat, int)

Saves image to file with given image format and quality.

public void GetNextImage(string outputFile, ImageFormat format, int quality)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
formatImageFormatThe format of the image.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also


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)
ParameterTypeDescription
outputFileStringThe file path and name to save the image.
pageSizePageSizeThe page size of the image.
formatImageFormatThe format of the image.
qualityInt32The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

See Also