Skip to main content

ImageConversionOptions

Version: 2.0

cete.dynamicpdf.conversion.imageconversionoptions

ImageConversionOptions​

  • Namespace: ceTe.DynamicPDF.Conversion
  • Assemblies: DynamicPDF.Converter.NETFramework40.dll, DynamicPDF.Converter.NETStandard20.dll

Defines properties and methods that are needed for a Image Conversion

public class ImageConversionOptions : ConversionOptions, ISerializable
Public Class ImageConversionOptions
Inherits ConversionOptions
Implements ISerializable

Inheritance: Object → ConversionOptions → ImageConversionOptions

Implements: ISerializable

Derived: TiffConversionOptions

Remarks​

This class is Serialized

Constructors​

ImageConversionOptions(Boolean)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(bool appendToPdf)
Public Sub New (appendToPdf As Boolean)

Parameters​

Specify if append option to be enabled

ImageConversionOptions(Double, Double, Double)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double margins)
Public Sub New (width As Double, height As Double, margins As Double)

Parameters​

Width of the page in points

Height of hte page in points

Margins of the page in points

ImageConversionOptions(Double, Double, Double, Double)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins)
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double)

Parameters​

Width of the page in points

Height of the page in points

The left and right margins of the page in points.

The top and bottom margins of the page in points.

ImageConversionOptions(Double, Double, Double, Double, Boolean)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins, bool appendToPdf)
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double, appendToPdf As Boolean)

Parameters​

Width of the page in points

Height of the page in points

The left and right margins of the page in points.

The top and bottom margins of the page in points.

Specify if append option to be enabled

ImageConversionOptions(PageSize, PageOrientation, Double)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(PageSize pageSize, PageOrientation orientation, double margins)
Public Sub New (pageSize As PageSize, orientation As PageOrientation, margins As Double)

Parameters​

Size of the page

Orientation of the page

Margins of the page in points

ImageConversionOptions(PageSize, PageOrientation, Double, Double, Boolean)​

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(PageSize size, PageOrientation orientation, double leftAndRightMargins, double topAndBottomMargins, bool appendToPdf)
Public Sub New (size As PageSize, orientation As PageOrientation, leftAndRightMargins As Double, topAndBottomMargins As Double, appendToPdf As Boolean)

Parameters​

Size of the page

Orientation of the page in points

The left and right margins of the page in points.

The top and bottom margins of the page in points.

Specify if append option to be enabled

Properties​

AppendToPdf​

Gets or sets the boolean value to specify if append to pdf option to be enabled. (Inherited from ConversionOptions)

public bool AppendToPdf { get; set; }
Public Property AppendToPdf As Boolean

Property Value​

Boolean

Author​

Gets or sets the author meta data for the converted PDF. (Inherited from ConversionOptions)

public string Author { get; set; }
Public Property Author As String

Property Value​

String

BottomMargin​

Gets or sets the bottom margin of the page. (Inherited from ConversionOptions)

public double BottomMargin { get; set; }
Public Property BottomMargin As Double

Property Value​

Double

Creator​

Gets or sets the creator meta data for the converted PDF. (Inherited from ConversionOptions)

public string Creator { get; set; }
Public Property Creator As String

Property Value​

String

ExpandToFit​

Determines if expand to fit is enabled

public bool ExpandToFit { get; set; }
Public Property ExpandToFit As Boolean

Property Value​

Boolean

Height​

Gets or sets the height of the page in points. (Inherited from ConversionOptions)

public double Height { get; set; }
Public Property Height As Double

Property Value​

Double

ImageAlignment​

Determines the alignment of the Image on the page

public ImageAlignment ImageAlignment { get; set; }
Public Property ImageAlignment As ImageAlignment

Property Value​

ImageAlignment

ImageSizeAsPageSize​

Determines if Image is same size as of page

public bool ImageSizeAsPageSize { get; set; }
Public Property ImageSizeAsPageSize As Boolean

Property Value​

Boolean

Keywords​

Gets or sets the keywords meta data for the converted PDF. (Inherited from ConversionOptions)

public string Keywords { get; set; }
Public Property Keywords As String

Property Value​

String

LeftMargin​

Gets or sets the left margin of the page in points. (Inherited from ConversionOptions)

public double LeftMargin { get; set; }
Public Property LeftMargin As Double

Property Value​

Double

PaperKind​

Gets or sets paper kind for the pages properties. (Inherited from ConversionOptions)

public PaperKind PaperKind { get; set; }
Public Property PaperKind As PaperKind

Property Value​

PaperKind

Producer​

Gets or sets the producer meta data for the converted PDF. (Inherited from ConversionOptions)

public string Producer { get; set; }
Public Property Producer As String

Property Value​

String

RightMargin​

Gets or sets the right margin of the page in points. (Inherited from ConversionOptions)

public double RightMargin { get; set; }
Public Property RightMargin As Double

Property Value​

Double

ShrinkToFit​

Determines is shrink to fit is enabled

public bool ShrinkToFit { get; set; }
Public Property ShrinkToFit As Boolean

Property Value​

Boolean

Subject​

Gets or sets the subject meta data for the converted PDF. (Inherited from ConversionOptions)

public string Subject { get; set; }
Public Property Subject As String

Property Value​

String

Title​

Gets or sets the title meta data for the converted PDF. (Inherited from ConversionOptions)

public string Title { get; set; }
Public Property Title As String

Property Value​

String

TopMargin​

Gets or sets the top margin of the page in points. (Inherited from ConversionOptions)

public double TopMargin { get; set; }
Public Property TopMargin As Double

Property Value​

Double

Width​

Gets or sets the width of the page in points. (Inherited from ConversionOptions)

public double Width { get; set; }
Public Property Width As Double

Property Value​

Double

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetObjectData(SerializationInfo, StreamingContext)​

Used for serialization of the object. (Inherited from ConversionOptions)

public void GetObjectData(SerializationInfo info, StreamingContext context)
Sub GetObjectData(info As SerializationInfo, context As StreamingContext)

Parameters​

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.Conversion