Table of Contents

ImageOutputOptions Class

Definition

Namespace
GleamTech.DocumentUltimate
Assembly
GleamTech.DocumentUltimate.dll

Represents a set of image output options used for document conversion.

public class ImageOutputOptions : OutputOptions
Inheritance
ImageOutputOptions

Examples

Increasing the resolution of the output images (default is 96 DPI):

var outputOptions = new ImageOutputOptions(DocumentFormat.Jpg)
{
    Resolution = 120
};

DocumentConverter.Convert(@"c:\SomeFolder\InputFile.pdf", outputOptions);
Dim outputOptions As New ImageOutputOptions(DocumentFormat.Jpg) With {
    .Resolution = 120
}

DocumentConverter.Convert("c:\SomeFolder\InputFile.pdf", outputOptions)

Constructors

ImageOutputOptions()

Initializes a new instance of the ImageOutputOptions class.

ImageOutputOptions(DocumentFormat)

Initializes a new instance of the ImageOutputOptions class with a document format.

Properties

Resolution

Gets or sets desired resolution for the generated images, in dots per inch (DPI). The default value is 96 DPI. For example, when DPI is 96 and input document page is 8 inches wide, the output image width will be 96*8 = 768 pixels. So the output dimensions (width and height) depends both input document dimensions and DPI.