UnitType Enum
Represents a UnitType value.
public enum UnitType
Public Enum UnitType
Inheritance: ObjectValueTypeEnumUnitType
Fields
UnitType.Inch | 1 | Unit values in Inches. |
UnitType.Millimeter | 0 | Unit values in Millimeters. |
UnitType.Point | 2 | Unit values in Typesetting Points. |
Licensing Info
This enum is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
Examples
This example demonstrates the use of UnitType class.Imports System
Imports ceTe.DynamicPDF.Rasterizer
Module MyModule
Sub Main()
' Create a PdfRasterizer object.
Dim rasterizer As New PdfRasterizer("InputPdfFile.pdf")
' Create a FixedImageSize object with required width,height and UnitType.
Dim fixedImageSize As New FixedImageSize(595, 841, UnitType.Point)
' Save the image.
rasterizer.Draw("Output.gif", ImageFormat.Gif, fixedImageSize)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Rasterizer;
class MyClass
{
static void Main(string[] args)
{
// Create a PdfRasterizer object.
PdfRasterizer rasterizer = new PdfRasterizer("InputPdfFile.pdf");
// Create a FixedImageSize object with required width,height and UnitType.
FixedImageSize fixedImageSize = new FixedImageSize(595, 841, UnitType.Point);
// Save the image.
rasterizer.Draw("Output.gif", ImageFormat.Gif, fixedImageSize);
}
}