UnitConverter.PointsToInches

Method to convert points to inches.

public static double PointsToInches(double size)
Shared Function PointsToInches(size As Double) As Double

Parameters

size
Double

Size in points.

Returns

Double

Size in inches.

Licensing Info

This method is a DynamicPDF HTML Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use UnitConverter class to do unit conversion.
Imports ceTe.DynamicPDF.Conversion

Module Module1

    Sub Main()      

        Dim width As Double = UnitConverter.InchesToPoints(5.5)
        Dim height As Double = UnitConverter.InchesToPoints(7.0)
        Dim margin As Double = UnitConverter.InchesToPoints(0.75)

        ' Create a instance of ConversionOptions
        Dim conversionOptions As ConversionOptions = New ConversionOptions(width, height, margin)

        ' Call convert method to do conversion
        Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf", conversionOptions)

    End Sub

End Module
using System;
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        double height = UnitConverter.InchesToPoints(5.5);
        double width = UnitConverter.InchesToPoints(7.0);
        double margin = UnitConverter.InchesToPoints(0.75);

        // Create a instance of ConversionOptions class.
        ConversionOptions option = new ConversionOptions(width, height, margin);         

        // Call convert method to do conversion.
        Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf", option);         
    }      
}

See Also

UnitConverter
ceTe.DynamicPDF.HtmlConverter

In this topic