Table of Contents

ImageToPdfOptions Class

Definition

Namespace
GleamTech.DocumentUltimate
Assembly
GleamTech.DocumentUltimate.dll

Represents options specific to image formats (including Dicom, Cad) to PDF conversion.

public class ImageToPdfOptions
Inheritance
ImageToPdfOptions

Constructors

ImageToPdfOptions()

Fields

A4PageHeight

The height of an A4 page, in points.

A4PageMargin

The margin of an A4 page, in points.

A4PageWidth

The width of an A4 page, in points.

Properties

AutoOrientPage

Gets or sets a value indicating whether to automatically set the page orientation to portrait or landscape according to the image aspect ratio. The default value is true.

Only when both page dimensions are specified, automatically swaps the width and height when necessary to match the image orientation.

AutoWrapPage

Gets or sets a value indicating whether to automatically resize the page to match the dimensions of the fitted image to avoid vertical or horizontal whitespace/margins. The default value is true.

When set to true, PageMargin will also be ignored.

PageHeight

Gets or sets the page height, in points. The default value is 841.8898f, which corresponds to the height of A4 paper.

The image will be fitted within this height. If the value is 0, it will be calculated from PageWidth according to the image's aspect ratio. If both width and height is 0, then the natural image size in points will be used.

PageMargin

Gets or sets the margin between the page edges and the image, in points. The same margin is applied to all sides of the page. The default value is 14.1732f.

This margin will be ignored if AutoWrapPage is set to true.

PageWidth

Gets or sets the page width, in points. The default value is 595.2756f, which corresponds to the width of A4 paper.

The image will be fitted within this width. If the value is 0, it will be calculated from PageHeight according to the image's aspect ratio. If both width and height is 0, then the natural image size in points will be used.