UnitType Enum

Represents a UnitType value.

public enum UnitType
Public Enum UnitType

Inheritance: ObjectValueTypeEnumUnitType

Fields

UnitType.Inch1Unit values in Inches.
UnitType.Millimeter0Unit values in Millimeters.
UnitType.Point2Unit values in Typesetting Points.

Licensing Info

This enum is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

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);
   }

}

See Also

ceTe.DynamicPDF.Rasterizer

In this topic